Changeset 0078d84 for Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/VetClinic.java
- Timestamp:
- 03/10/23 21:43:30 (16 months ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/VetClinic.java
rb46d1f2 r0078d84 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.