- Timestamp:
- 02/03/23 10:47:25 (17 months ago)
- Branches:
- main
- Children:
- 038c9f7, 1bd0a56, 8ae6217
- Parents:
- fdfc6fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/Adopter.java
rfdfc6fa r579bf6d 5 5 import finki.paw5.model.enumerations.Housing; 6 6 import finki.paw5.model.enumerations.PhysicalActivity; 7 import jakarta.persistence.Column; 8 import jakarta.persistence.Entity; 9 import jakarta.persistence.Id; 10 import jakarta.persistence.Table; 7 import jakarta.persistence.*; 11 8 import lombok.Data; 9 10 import java.time.LocalDate; 12 11 13 12 @Data 14 13 @Entity 15 14 @Table(name = "adopter") 16 public class Adopter { 17 18 @Id 19 @Column(name = "id_user", nullable = false) 20 private int id; 15 @PrimaryKeyJoinColumn(name = "id_user") 16 public class Adopter extends User { 21 17 22 18 @Column(name = "free_time") … … 47 43 private int verifiedByEmployeeId; 48 44 49 public Adopter(int id, FreeTime freeTime, Funds funds, boolean hasOtherPets, boolean hasKids, Housing housing, PhysicalActivity physicalActivity, boolean willFoster, boolean verified, int verifiedByEmployeeId) { 50 this.id = id; 45 public Adopter(LocalDate dateCreated, String name, String email, String password, String telephone, 46 FreeTime freeTime, Funds funds, boolean hasOtherPets, boolean hasKids, Housing housing, 47 PhysicalActivity physicalActivity, boolean willFoster, boolean verified, int verifiedByEmployeeId) { 48 super(dateCreated, name, email, password, telephone); 49 this.freeTime = freeTime; 50 this.funds = funds; 51 this.hasOtherPets = hasOtherPets; 52 this.hasKids = hasKids; 53 this.housing = housing; 54 this.physicalActivity = physicalActivity; 55 this.willFoster = willFoster; 56 this.verified = verified; 57 this.verifiedByEmployeeId = verifiedByEmployeeId; 58 } 59 60 public Adopter(FreeTime freeTime, Funds funds, boolean hasOtherPets, boolean hasKids, Housing housing, 61 PhysicalActivity physicalActivity, boolean willFoster, boolean verified, int verifiedByEmployeeId) { 51 62 this.freeTime = freeTime; 52 63 this.funds = funds;
Note:
See TracChangeset
for help on using the changeset viewer.