Ignore:
Timestamp:
11/23/21 14:58:44 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
e29cc2e
Parents:
ceaed42
Message:

adding photos

Location:
trip-planner/src/main/java/finki/diplomska/tripplanner/models
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner/src/main/java/finki/diplomska/tripplanner/models/Location.java

    rceaed42 r59329aa  
    22
    33import com.fasterxml.jackson.annotation.JsonBackReference;
     4import com.fasterxml.jackson.annotation.JsonManagedReference;
    45import lombok.AllArgsConstructor;
    56import lombok.Getter;
     
    7273
    7374
     75    @OneToMany(mappedBy = "location", cascade = CascadeType.REMOVE, orphanRemoval = true)
     76    @JsonManagedReference
     77    private List<Images> imagesList;
     78
     79
    7480}
Note: See TracChangeset for help on using the changeset viewer.