Ignore:
Timestamp:
02/05/23 17:44:50 (17 months ago)
Author:
Filip Chorbeski <86695898+FilipChorbeski@…>
Branches:
main
Children:
b1b571b
Parents:
1bd0a56 (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.
Message:

Merge branch 'main' into create-post

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsTherapy.java

    r1bd0a56 rd396372  
    11package finki.paw5.model.relations;
    22
    3 import jakarta.persistence.Column;
    4 import jakarta.persistence.Entity;
    5 import jakarta.persistence.Id;
    6 import jakarta.persistence.Table;
     3import jakarta.persistence.*;
    74import lombok.Data;
    85
     
    107@Entity
    118@Table(name = "pet_needs_therapy")
     9@IdClass(PetNeedsTherapyId.class)
    1210public class PetNeedsTherapy {
    1311
    1412    @Id
    1513    @Column(name="id_pet", nullable = false)
    16     private int petId;
     14    private Integer petId;
    1715
    1816    @Id
    1917    @Column(name="id_therapy", nullable = false)
    20     private int therapyId;
     18    private Integer therapyId;
    2119
    2220    public PetNeedsTherapy(int petId, int therapyId) {
Note: See TracChangeset for help on using the changeset viewer.