Changeset 0078d84 for Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Organisation.java
- Timestamp:
- 03/10/23 21:43:30 (16 months ago)
- Branches:
- main
- Children:
- 104185f
- Parents:
- b46d1f2 (diff), c3278ac (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Organisation.java
rb46d1f2 r0078d84 3 3 import jakarta.persistence.*; 4 4 import lombok.Data; 5 import lombok.RequiredArgsConstructor; 6 7 import java.util.List; 5 8 6 9 @Data 7 10 @Entity 11 @RequiredArgsConstructor 8 12 @Table(name = "organisation") 9 13 public class Organisation { … … 23 27 private String billingInformation; 24 28 29 @ManyToMany 30 @JoinTable(name = "donor_donates_to_organisation", 31 joinColumns = @JoinColumn(name = "id_organisation"), 32 inverseJoinColumns = @JoinColumn(name = "id_user")) 33 List<Donor> donors; 34 25 35 public Organisation(String name, String email, String billingInformation) { 26 36 this.name = name; … … 28 38 this.billingInformation = billingInformation; 29 39 } 30 31 public Organisation() {32 }33 40 }
Note:
See TracChangeset
for help on using the changeset viewer.