Changeset c3278ac for Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Adoption.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/Adoption.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; … … 8 9 @Data 9 10 @Entity 11 @RequiredArgsConstructor 10 12 @Table(name = "adoption") 11 13 public class Adoption { … … 23 25 24 26 @Column(name = "approved", nullable = false) 25 private boolean approved;27 private Boolean approved; 26 28 27 @Column(name = "id_adopter", nullable = false) 28 private Integer adopterId; 29 @ManyToOne 30 @JoinColumn(name = "id_adopter", nullable = false) 31 private Adopter adopter; 29 32 30 public Adoption(LocalDate startDate, LocalDate endDateFoster, boolean approved, Integer adopterId) { 33 public Adoption(LocalDate startDate, LocalDate endDateFoster, Boolean approved, 34 Adopter adopter) { 31 35 this.startDate = startDate; 32 36 this.endDateFoster = endDateFoster; 33 37 this.approved = approved; 34 this.adopterId = adopterId; 35 } 36 37 public Adoption() { 38 this.adopter = adopter; 38 39 } 39 40 }
Note:
See TracChangeset
for help on using the changeset viewer.