Changeset eb226b2 for src/main/java/com/example/moviezone/model/User.java
- Timestamp:
- 02/04/23 00:39:48 (22 months ago)
- Branches:
- master
- Children:
- 2269653
- Parents:
- ac25203
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/model/User.java
rac25203 reb226b2 9 9 10 10 import javax.management.relation.Role; 11 import java.time.LocalDate; 11 12 import java.time.LocalDateTime; 12 13 import java.util.Collection; … … 29 30 String contact_number; 30 31 String username; 31 LocalDate Timedate_created;32 LocalDate date_created; 32 33 33 private boolean isAccountNonExpired = true;34 private boolean isAccountNonLocked = true;35 private boolean isCredentialsNonExpired = true;36 private boolean isEnabled = true;37 34 38 @Enumerated(value = EnumType.STRING) 39 private Role role; 40 41 public User(Integer id_user, String password, String first_name, String last_name, String address, String contact_number, String username, LocalDateTime date_created, Role role) { 35 public User(Integer id_user, String password, String first_name, String last_name, String address, String contact_number, String username, LocalDate date_created) { 42 36 this.id_user = id_user; 43 37 this.password = password; … … 48 42 this.username = username; 49 43 this.date_created = date_created; 50 this.role = role;51 44 } 52 45 … … 63 56 @Override 64 57 public boolean isAccountNonExpired() { 65 return isAccountNonExpired;58 return true; 66 59 } 67 60 68 61 @Override 69 62 public boolean isAccountNonLocked() { 70 return isAccountNonLocked;63 return true; 71 64 } 72 65 73 66 @Override 74 67 public boolean isCredentialsNonExpired() { 75 return isCredentialsNonExpired;68 return true; 76 69 } 77 70 78 71 @Override 79 72 public boolean isEnabled() { 80 return isEnabled;73 return true; 81 74 } 82 75
Note:
See TracChangeset
for help on using the changeset viewer.