Changes in / [1bd0a56:d396372]
- Location:
- Prototype Application/Paw5/src/main/java/finki/paw5/model
- Files:
-
- 21 added
- 17 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/DonorDonatesToOrganisation.java
r1bd0a56 rd396372 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) { -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetBelongsToCategory.java
r1bd0a56 rd396372 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 = "pet_belongs_to_category") 9 @IdClass(PetBelongsToCategoryId.class) 12 10 public class PetBelongsToCategory { 13 11 14 12 @Id 15 13 @Column(name="id_pet", nullable = false) 16 private intpetId;14 private Integer petId; 17 15 18 16 @Id 19 17 @Column(name="id_category", nullable = false) 20 private intcategoryId;18 private Integer categoryId; 21 19 22 20 public PetBelongsToCategory(int petId, int categoryId) { -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsInterventionInVetClinic.java
r1bd0a56 rd396372 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 … … 13 10 @Entity 14 11 @Table(name = "pet_needs_intervention_in_vet_clinic") 12 @IdClass(PetNeedsInterventionInVetClinicId.class) 15 13 public class PetNeedsInterventionInVetClinic { 16 14 17 15 @Id 18 16 @Column(name = "id_pet", nullable = false) 19 private intpetId;17 private Integer petId; 20 18 21 19 @Id 22 20 @Column(name = "id_vet_clinic", nullable = false) 23 private intvetClinicId;21 private Integer vetClinicId; 24 22 25 23 @Column(name = "date_of_interventing", nullable = false) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsTherapy.java
r1bd0a56 rd396372 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 = "pet_needs_therapy") 9 @IdClass(PetNeedsTherapyId.class) 12 10 public class PetNeedsTherapy { 13 11 14 12 @Id 15 13 @Column(name="id_pet", nullable = false) 16 private intpetId;14 private Integer petId; 17 15 18 16 @Id 19 17 @Column(name="id_therapy", nullable = false) 20 private inttherapyId;18 private Integer therapyId; 21 19 22 20 public PetNeedsTherapy(int petId, int therapyId) { -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetPreferablyEatsFood.java
r1bd0a56 rd396372 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 = "pet_preferably_eats_food") 9 @IdClass(PetPreferablyEatsFoodId.class) 12 10 public class PetPreferablyEatsFood { 13 11 14 12 @Id 15 13 @Column(name = "id_pet", nullable = false) 16 private intpetId;14 private Integer petId; 17 15 18 16 @Id 19 17 @Column(name = "id_food", nullable = false) 20 private intfoodId;18 private Integer foodId; 21 19 22 20 @Column(name = "quantity_a_day", nullable = false)
Note:
See TracChangeset
for help on using the changeset viewer.