Changeset e294983 for Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsTherapy.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/PetNeedsTherapy.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 = "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) {
Note:
See TracChangeset
for help on using the changeset viewer.