- Timestamp:
- 09/17/22 01:23:47 (2 years ago)
- Branches:
- master
- Children:
- 7e88e46
- Parents:
- e5b84dc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
phonelux-backend/src/main/java/finki/it/phoneluxbackend/entities/User.java
re5b84dc r775e15e 1 1 package finki.it.phoneluxbackend.entities; 2 2 3 import com.fasterxml.jackson.annotation.JsonIgnore; 3 4 import finki.it.phoneluxbackend.data.UserRole; 4 5 import lombok.*; … … 15 16 @Getter 16 17 @Setter 18 @ToString 17 19 @EqualsAndHashCode 18 20 @NoArgsConstructor … … 48 50 inverseJoinColumns = @JoinColumn(name = "offer_id") 49 51 ) 52 @JsonIgnore 50 53 private List<PhoneOffer> favouriteOffers = new ArrayList<PhoneOffer>(); 51 54 … … 55 58 this.email = email; 56 59 this.password = password; 60 this.userRole = userRole; 61 } 62 63 public User(Long id, String firstName, UserRole userRole) { 64 this.id = id; 65 this.firstName = firstName; 66 this.userRole = userRole; 67 } 68 69 public User(Long id, String firstName, String lastName, String email, UserRole userRole) { 70 this.id = id; 71 this.firstName = firstName; 72 this.lastName = lastName; 73 this.email = email; 57 74 this.userRole = userRole; 58 75 }
Note:
See TracChangeset
for help on using the changeset viewer.