package finki.paw5.model.relations; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.Data; @Data @Entity @Table(name = "pet_needs_therapy") public class PetNeedsTherapy { @Id @Column(name="id_pet", nullable = false) private int petId; @Id @Column(name="id_therapy", nullable = false) private int therapyId; public PetNeedsTherapy(int petId, int therapyId) { this.petId = petId; this.therapyId = therapyId; } public PetNeedsTherapy() { } }