Changeset c3278ac for Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Shelter.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/Shelter.java
r8b7dd7f rc3278ac 3 3 import jakarta.persistence.*; 4 4 import lombok.Data; 5 import lombok.RequiredArgsConstructor; 5 6 6 7 @Data 7 8 @Entity 9 @RequiredArgsConstructor 8 10 @Table(name = "shelter") 9 11 public class Shelter { … … 20 22 private String telephone; 21 23 22 @Column(name = "id_organisation") 23 private Integer organisationId; 24 @ManyToOne 25 @JoinColumn(name = "id_organisation") 26 private Organisation organisation; 24 27 25 28 @Column(name = "name_shelter", nullable = false, length = 100) … … 29 32 private String email; 30 33 31 public Shelter(String address, String telephone, Integer organisationId, String name, String email) { 34 public Shelter(String address, String telephone, Organisation organisation, 35 String name, String email) { 32 36 this.address = address; 33 37 this.telephone = telephone; 34 this.organisation Id = organisationId;38 this.organisation = organisation; 35 39 this.name = name; 36 40 this.email = email; 37 41 } 38 39 public Shelter() {40 }41 42 }
Note:
See TracChangeset
for help on using the changeset viewer.