diff --git a/SpringApp/library/src/main/java/com/ip/library/books/api/BookDto.java b/SpringApp/library/src/main/java/com/ip/library/books/api/BookDto.java index 5c1ccd2..41346ef 100644 --- a/SpringApp/library/src/main/java/com/ip/library/books/api/BookDto.java +++ b/SpringApp/library/src/main/java/com/ip/library/books/api/BookDto.java @@ -27,6 +27,14 @@ public class BookDto { this.id = id; } + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + public Long getTypeId() { return typeId; } diff --git a/SpringApp/library/src/main/java/com/ip/library/users/api/UserDto.java b/SpringApp/library/src/main/java/com/ip/library/users/api/UserDto.java index 747ba0e..52efe25 100644 --- a/SpringApp/library/src/main/java/com/ip/library/users/api/UserDto.java +++ b/SpringApp/library/src/main/java/com/ip/library/users/api/UserDto.java @@ -10,7 +10,7 @@ public class UserDto { private Long id; @NotBlank @Size(min = 5, max = 20) - private String name; + private String login; @JsonProperty(access = JsonProperty.Access.READ_ONLY) @NotBlank @Size(min = 5, max = 20) @@ -28,12 +28,12 @@ public class UserDto { this.id = id; } - public String getName() { - return name; + public String getLogin() { + return login; } - public void setName(String name) { - this.name = name; + public void setLogin(String name) { + this.login = name; } public String getPassword() {