Changes in / [d396372:1bd0a56]
- Location:
- Prototype Application/Paw5/src/main/java/finki/paw5/model
- Files:
-
- 17 added
- 21 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/DonorDonatesToOrganisation.java
rd396372 r1bd0a56 1 1 package finki.paw5.model.relations; 2 2 3 import jakarta.persistence.*; 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 4 7 import lombok.Data; 5 8 … … 7 10 @Entity 8 11 @Table(name = "donor_donates_to_organisation") 9 @IdClass(DonorDonatesToOrganisationId.class)10 12 public class DonorDonatesToOrganisation { 11 13 12 14 @Id 13 15 @Column(name="id_user", nullable = false) 14 private IntegeruserId;16 private int userId; 15 17 16 18 @Id 17 19 @Column(name="id_organisation", nullable = false) 18 private IntegerorganisationId;20 private int organisationId; 19 21 20 22 public DonorDonatesToOrganisation(int userId, int organisationId) { -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetBelongsToCategory.java
rd396372 r1bd0a56 1 1 package finki.paw5.model.relations; 2 2 3 import jakarta.persistence.*; 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 4 7 import lombok.Data; 5 8 … … 7 10 @Entity 8 11 @Table(name = "pet_belongs_to_category") 9 @IdClass(PetBelongsToCategoryId.class)10 12 public class PetBelongsToCategory { 11 13 12 14 @Id 13 15 @Column(name="id_pet", nullable = false) 14 private IntegerpetId;16 private int petId; 15 17 16 18 @Id 17 19 @Column(name="id_category", nullable = false) 18 private IntegercategoryId;20 private int categoryId; 19 21 20 22 public PetBelongsToCategory(int petId, int categoryId) { -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsInterventionInVetClinic.java
rd396372 r1bd0a56 1 1 package finki.paw5.model.relations; 2 2 3 import jakarta.persistence.*; 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 4 7 import lombok.Data; 5 8 … … 10 13 @Entity 11 14 @Table(name = "pet_needs_intervention_in_vet_clinic") 12 @IdClass(PetNeedsInterventionInVetClinicId.class)13 15 public class PetNeedsInterventionInVetClinic { 14 16 15 17 @Id 16 18 @Column(name = "id_pet", nullable = false) 17 private IntegerpetId;19 private int petId; 18 20 19 21 @Id 20 22 @Column(name = "id_vet_clinic", nullable = false) 21 private IntegervetClinicId;23 private int vetClinicId; 22 24 23 25 @Column(name = "date_of_interventing", nullable = false) -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsTherapy.java
rd396372 r1bd0a56 1 1 package finki.paw5.model.relations; 2 2 3 import jakarta.persistence.*; 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 4 7 import lombok.Data; 5 8 … … 7 10 @Entity 8 11 @Table(name = "pet_needs_therapy") 9 @IdClass(PetNeedsTherapyId.class)10 12 public class PetNeedsTherapy { 11 13 12 14 @Id 13 15 @Column(name="id_pet", nullable = false) 14 private IntegerpetId;16 private int petId; 15 17 16 18 @Id 17 19 @Column(name="id_therapy", nullable = false) 18 private IntegertherapyId;20 private int therapyId; 19 21 20 22 public PetNeedsTherapy(int petId, int therapyId) { -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetPreferablyEatsFood.java
rd396372 r1bd0a56 1 1 package finki.paw5.model.relations; 2 2 3 import jakarta.persistence.*; 3 import jakarta.persistence.Column; 4 import jakarta.persistence.Entity; 5 import jakarta.persistence.Id; 6 import jakarta.persistence.Table; 4 7 import lombok.Data; 5 8 … … 7 10 @Entity 8 11 @Table(name = "pet_preferably_eats_food") 9 @IdClass(PetPreferablyEatsFoodId.class)10 12 public class PetPreferablyEatsFood { 11 13 12 14 @Id 13 15 @Column(name = "id_pet", nullable = false) 14 private IntegerpetId;16 private int petId; 15 17 16 18 @Id 17 19 @Column(name = "id_food", nullable = false) 18 private IntegerfoodId;20 private int foodId; 19 21 20 22 @Column(name = "quantity_a_day", nullable = false)
Note:
See TracChangeset
for help on using the changeset viewer.