- Timestamp:
- 01/05/23 04:11:40 (23 months ago)
- Branches:
- main
- Children:
- 1bd8d1e
- Parents:
- 7d43957
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/Warehouseman.java
r7d43957 r676144b 39 39 if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false; 40 40 Warehouseman that = (Warehouseman) o; 41 return ID_user != null && Objects.equals(ID_user, that.ID_user);41 return id != null && Objects.equals(id, that.id); 42 42 } 43 43 … … 48 48 @Override 49 49 public Collection<? extends GrantedAuthority> getAuthorities() { 50 if( employed_from==defaultEmployedFrom)50 if(Objects.equals(employed_from, defaultEmployedFrom)) 51 51 return Collections.singletonList(Role.ROLE_PENDING_WAREHOUSEMAN); 52 52 else
Note:
See TracChangeset
for help on using the changeset viewer.