- Timestamp:
- 09/07/22 00:51:50 (2 years ago)
- Branches:
- master
- Children:
- 527b93f
- Parents:
- dbd4834
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
phonelux-backend/src/main/java/finki/it/phoneluxbackend/entities/User.java
rdbd4834 rf25d07e 8 8 9 9 import javax.persistence.*; 10 import java.util.ArrayList; 10 11 import java.util.Collection; 11 12 import java.util.Collections; 13 import java.util.List; 12 14 13 15 @Getter … … 16 18 @NoArgsConstructor 17 19 @AllArgsConstructor 18 @Entity(name = "users") 20 @Entity(name = "User") 21 @Table(name = "users") 19 22 public class User implements UserDetails { 20 23 … … 38 41 private Boolean locked = false; 39 42 private Boolean enabled = false; 43 44 @ManyToMany 45 @JoinTable( 46 name = "users_favourite_offers", 47 joinColumns = @JoinColumn(name = "user_id"), 48 inverseJoinColumns = @JoinColumn(name = "offer_id") 49 ) 50 private List<PhoneOffer> favouriteOffers = new ArrayList<PhoneOffer>(); 40 51 41 52 public User(String firstName, String lastName, String email, String password, UserRole userRole) {
Note:
See TracChangeset
for help on using the changeset viewer.