Ignore:
Timestamp:
03/10/23 21:43:30 (16 months ago)
Author:
SazdovaEkaterina <sazdovaekaterina@…>
Branches:
main
Children:
104185f
Parents:
b46d1f2 (diff), c3278ac (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:

resolve merge conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/VetClinic.java

    rb46d1f2 r0078d84  
    33import jakarta.persistence.*;
    44import lombok.Data;
     5import lombok.RequiredArgsConstructor;
     6
     7import java.util.List;
    58
    69@Data
    710@Entity
     11@RequiredArgsConstructor
    812@Table(name = "vet_clinic")
    913public class VetClinic {
     
    2327    private String name;
    2428
     29    @ManyToMany
     30    @JoinTable(name = "pet_needs_intervention_in_vet_clinic",
     31            joinColumns = @JoinColumn(name = "id_vet_clinic"),
     32            inverseJoinColumns = @JoinColumn(name = "id_pet"))
     33    List<Pet> pets;
     34
    2535    public VetClinic(String telephone, String address, String name) {
    2636        this.telephone = telephone;
     
    2838        this.name = name;
    2939    }
    30 
    31     public VetClinic() {
    32     }
    3340}
Note: See TracChangeset for help on using the changeset viewer.