1 | package finki.paw5.model;
|
---|
2 |
|
---|
3 | import finki.paw5.model.enumerations.FreeTime;
|
---|
4 | import finki.paw5.model.enumerations.Funds;
|
---|
5 | import finki.paw5.model.enumerations.Housing;
|
---|
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;
|
---|
11 | import lombok.Data;
|
---|
12 |
|
---|
13 | @Data
|
---|
14 | @Entity
|
---|
15 | @Table(name = "adopter")
|
---|
16 | public class Adopter {
|
---|
17 |
|
---|
18 | @Id
|
---|
19 | @Column(name = "id_user", nullable = false)
|
---|
20 | private int id;
|
---|
21 |
|
---|
22 | @Column(name = "free_time")
|
---|
23 | private FreeTime freeTime;
|
---|
24 |
|
---|
25 | @Column(name = "funds")
|
---|
26 | private Funds funds;
|
---|
27 |
|
---|
28 | @Column(name = "has_other_pets")
|
---|
29 | private boolean hasOtherPets;
|
---|
30 |
|
---|
31 | @Column(name = "has_kids")
|
---|
32 | private boolean hasKids;
|
---|
33 |
|
---|
34 | @Column(name = "housing")
|
---|
35 | private Housing housing;
|
---|
36 |
|
---|
37 | @Column(name = "physical_activity_adopters")
|
---|
38 | private PhysicalActivity physicalActivity;
|
---|
39 |
|
---|
40 | @Column(name = "will_foster")
|
---|
41 | private boolean willFoster;
|
---|
42 |
|
---|
43 | @Column(name = "is_verified", nullable = false)
|
---|
44 | private boolean verified;
|
---|
45 |
|
---|
46 | @Column(name = "verified_by_employee")
|
---|
47 | private int verifiedByEmployeeId;
|
---|
48 |
|
---|
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;
|
---|
51 | this.freeTime = freeTime;
|
---|
52 | this.funds = funds;
|
---|
53 | this.hasOtherPets = hasOtherPets;
|
---|
54 | this.hasKids = hasKids;
|
---|
55 | this.housing = housing;
|
---|
56 | this.physicalActivity = physicalActivity;
|
---|
57 | this.willFoster = willFoster;
|
---|
58 | this.verified = verified;
|
---|
59 | this.verifiedByEmployeeId = verifiedByEmployeeId;
|
---|
60 | }
|
---|
61 |
|
---|
62 | public Adopter() {
|
---|
63 | }
|
---|
64 | }
|
---|