Changeset e294983 for Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/DonorDonatesToOrganisation.java
- Timestamp:
- 02/05/23 17:43:38 (17 months ago)
- Branches:
- main
- Children:
- 4d78603
- Parents:
- 8ae6217 (diff), d546868 (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/relations/DonorDonatesToOrganisation.java
r8ae6217 re294983 1 1 package finki.paw5.model.relations; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 7 4 import lombok.Data; 8 5 … … 10 7 @Entity 11 8 @Table(name = "donor_donates_to_organisation") 9 @IdClass(DonorDonatesToOrganisationId.class) 12 10 public class DonorDonatesToOrganisation { 13 11 14 12 @Id 15 13 @Column(name="id_user", nullable = false) 16 private intuserId;14 private Integer userId; 17 15 18 16 @Id 19 17 @Column(name="id_organisation", nullable = false) 20 private intorganisationId;18 private Integer organisationId; 21 19 22 20 public DonorDonatesToOrganisation(int userId, int organisationId) {
Note:
See TracChangeset
for help on using the changeset viewer.