diff --git a/src/main/java/com/example/demo/entrysData/api/EntrysDataDto.java b/src/main/java/com/example/demo/entrysData/api/EntrysDataDto.java index 7effa43..cb178e6 100644 --- a/src/main/java/com/example/demo/entrysData/api/EntrysDataDto.java +++ b/src/main/java/com/example/demo/entrysData/api/EntrysDataDto.java @@ -14,7 +14,7 @@ public class EntrysDataDto { @NotBlank private String login; @NotNull - private String role; + private String role = "user"; @NotBlank private String password; @@ -40,11 +40,6 @@ public class EntrysDataDto { return role; } - public void setRole(String role) { - role = "user"; - this.role = role; - } - public String getPassword() { return password; } diff --git a/src/main/java/com/example/demo/entrysData/model/EntrysDataEntity.java b/src/main/java/com/example/demo/entrysData/model/EntrysDataEntity.java index 2d7e8a2..5d7b2f8 100644 --- a/src/main/java/com/example/demo/entrysData/model/EntrysDataEntity.java +++ b/src/main/java/com/example/demo/entrysData/model/EntrysDataEntity.java @@ -43,10 +43,6 @@ public class EntrysDataEntity extends BaseEntity { return role; } - public void setRole(String role) { - this.role = role; - } - public DepartmentEntity getDepartment() { return department; }