source: Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsTherapy.java

main
Last change on this file was c049fd6, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 13 months ago

specify project schema in the backend

  • Property mode set to 100644
File size: 584 bytes
RevLine 
[d427a07]1package finki.paw5.model.relations;
2
[4846b7a]3import jakarta.persistence.*;
[d427a07]4import lombok.Data;
[d1fe9c2]5import lombok.RequiredArgsConstructor;
[d427a07]6
7@Data
8@Entity
[d1fe9c2]9@RequiredArgsConstructor
[c049fd6]10@Table(name = "pet_needs_therapy", schema = "project")
[4846b7a]11@IdClass(PetNeedsTherapyId.class)
[d427a07]12public class PetNeedsTherapy {
13
14 @Id
15 @Column(name="id_pet", nullable = false)
[ada7108]16 private Integer petId;
[d427a07]17
18 @Id
19 @Column(name="id_therapy", nullable = false)
[ada7108]20 private Integer therapyId;
[d427a07]21
22 public PetNeedsTherapy(int petId, int therapyId) {
23 this.petId = petId;
24 this.therapyId = therapyId;
25 }
26}
Note: See TracBrowser for help on using the repository browser.