lab-3 some fixes in dto

This commit is contained in:
Zakharov_Rostislav 2024-04-26 14:42:14 +04:00
parent c58d300411
commit f03ab7e06d
2 changed files with 13 additions and 5 deletions

View File

@ -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;
}

View File

@ -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() {