Changeset c3278ac for Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/PersonalProfile.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/PersonalProfile.java
r8b7dd7f rc3278ac 2 2 3 3 import finki.paw5.model.enumerations.*; 4 import jakarta.persistence.Column; 5 import jakarta.persistence.Entity; 6 import jakarta.persistence.Id; 7 import jakarta.persistence.Table; 4 import jakarta.persistence.*; 8 5 import lombok.Data; 6 import lombok.RequiredArgsConstructor; 9 7 10 8 @Data 11 9 @Entity 10 @RequiredArgsConstructor 12 11 @Table(name = "personal_profile") 13 12 public class PersonalProfile { … … 16 15 @Column(name = "id_pet", nullable = false) 17 16 private Integer id; 17 18 @OneToOne 19 @JoinColumn(name = "id_pet", nullable = false) 20 private Pet pet; 18 21 19 22 @Column(name = "friendly_to_kids", nullable = false) … … 32 35 private GroomingNeed groomingNeed; 33 36 34 public PersonalProfile(Integer id, FriendlyToKids friendlyToKids, FriendlyToPets friendlyToPets, AttentionNeed attentionNeed, PhysicalActivity physicalActivity, GroomingNeed groomingNeed) {37 public PersonalProfile(Integer id, Pet pet, FriendlyToKids friendlyToKids, FriendlyToPets friendlyToPets, AttentionNeed attentionNeed, PhysicalActivity physicalActivity, GroomingNeed groomingNeed) { 35 38 this.id = id; 39 this.pet = pet; 36 40 this.friendlyToKids = friendlyToKids; 37 41 this.friendlyToPets = friendlyToPets; … … 40 44 this.groomingNeed = groomingNeed; 41 45 } 42 43 public PersonalProfile() {44 }45 46 }
Note:
See TracChangeset
for help on using the changeset viewer.