Changeset c3278ac for Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Therapy.java
- Timestamp:
- 03/09/23 16:11:48 (16 months ago)
- Branches:
- main
- Children:
- 0078d84, 4ab3aae
- Parents:
- 8b7dd7f (diff), 264d675 (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. - git-author:
- SazdovaEkaterina <74919977+SazdovaEkaterina@…> (03/09/23 16:11:48)
- git-committer:
- GitHub <noreply@…> (03/09/23 16:11:48)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Therapy.java
r8b7dd7f rc3278ac 3 3 import jakarta.persistence.*; 4 4 import lombok.Data; 5 import lombok.RequiredArgsConstructor; 5 6 6 7 import java.time.LocalDate; 7 8 import java.util.Date; 9 import java.util.List; 8 10 9 11 @Data 10 12 @Entity 13 @RequiredArgsConstructor 11 14 @Table(name = "therapy") 12 15 public class Therapy { … … 26 29 private LocalDate endDate; 27 30 31 @ManyToMany 32 @JoinTable(name = "pet_needs_therapy", 33 joinColumns = @JoinColumn(name = "id_therapy"), 34 inverseJoinColumns = @JoinColumn(name = "id_pet")) 35 List<Pet> pets; 36 28 37 public Therapy(String healthProblem, LocalDate startDate, LocalDate endDate) { 29 38 this.healthProblem = healthProblem; … … 31 40 this.endDate = endDate; 32 41 } 33 34 public Therapy() {35 }36 42 }
Note:
See TracChangeset
for help on using the changeset viewer.