Changeset c3278ac for Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Organisation.java
- Timestamp:
- 03/09/23 16:11:48 (16 months ago)
- Branches:
- main
- Children:
- 0078d84, 4ab3aae
- Parents:
- 8b7dd7f (diff), 264d675 (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. - git-author:
- SazdovaEkaterina <74919977+SazdovaEkaterina@…> (03/09/23 16:11:48)
- git-committer:
- GitHub <noreply@…> (03/09/23 16:11:48)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Organisation.java
r8b7dd7f rc3278ac 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.