Changeset c3278ac for Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Employee.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/Employee.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 = "employee") 11 13 @PrimaryKeyJoinColumn(name = "id_user") … … 15 17 private String position; 16 18 17 @Column(name = "id_shelter", nullable = false) 18 private Integer shelterId; 19 @ManyToOne 20 @JoinColumn(name = "id_shelter", nullable = false) 21 private Shelter shelter; 19 22 20 23 @Column(name = "is_verified", nullable = false) 21 private boolean verified;24 private Boolean verified; 22 25 23 @Column(name = "verified_by_admin") 24 private Integer verifiedByAdminId; 26 @ManyToOne 27 @JoinColumn(name = "verified_by_admin") 28 private Admin adminVerificator; 25 29 26 30 public Employee(LocalDate dateCreated, String name, String email, String password, String telephone, 27 String position, int shelterId, boolean verified) {31 String position, Shelter shelter, Boolean verified) { 28 32 super(dateCreated, name, email, password, telephone); 29 33 this.position = position; 30 this.shelter Id = shelterId;34 this.shelter = shelter; 31 35 this.verified = verified; 32 36 } 33 37 34 public Employee(String position, int shelterId, boolean verified, int verifiedByAdminId) {35 this.position = position;36 this.shelterId = shelterId;37 this.verified = verified;38 this.verifiedByAdminId = verifiedByAdminId;39 }40 41 public Employee() {42 43 }44 45 38 }
Note:
See TracChangeset
for help on using the changeset viewer.