Changes in Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/VetClinic.java [ada7108:c03e53b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/VetClinic.java
rada7108 rc03e53b 3 3 import jakarta.persistence.*; 4 4 import lombok.Data; 5 import lombok.RequiredArgsConstructor; 6 7 import java.util.List; 5 8 6 9 @Data 7 10 @Entity 11 @RequiredArgsConstructor 8 12 @Table(name = "vet_clinic") 9 13 public class VetClinic { … … 23 27 private String name; 24 28 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 25 35 public VetClinic(String telephone, String address, String name) { 26 36 this.telephone = telephone; … … 28 38 this.name = name; 29 39 } 30 31 public VetClinic() {32 }33 40 }
Note:
See TracChangeset
for help on using the changeset viewer.