- Timestamp:
- 02/06/22 18:15:51 (3 years ago)
- Branches:
- master
- Children:
- 571e0df
- Parents:
- 76712b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner/src/main/java/finki/diplomska/tripplanner/models/Location.java
r76712b2 r6fe77af 14 14 @Entity 15 15 @Table(name = "locations") 16 @NoArgsConstructor17 16 @AllArgsConstructor 18 17 @Getter … … 65 64 private List<Planner> plannerList; 66 65 66 @ManyToOne 67 @JsonBackReference 68 @JoinColumn(name = "id_user") 69 private User user; 67 70 68 71 @ManyToMany … … 74 77 private List<Category> categoryList; 75 78 76 77 79 @OneToMany(mappedBy = "location", cascade = CascadeType.REMOVE, orphanRemoval = true) 78 80 @JsonManagedReference 79 81 private List<Images> imagesList; 80 82 83 public Location(String name, String description, String address, String priority, int duration, String trivia, byte[] photo, Region region, City city, User user) { 84 this.name = name; 85 this.description = description; 86 this.address = address; 87 this.priority = priority; 88 this.duration = duration; 89 this.trivia = trivia; 90 this.photo = photo; 91 this.region = region; 92 this.city = city; 93 this.user = user; 94 } 81 95 96 public Location() { 97 } 82 98 }
Note:
See TracChangeset
for help on using the changeset viewer.