Changeset fdfc6fa
- Timestamp:
- 02/02/23 18:27:30 (21 months ago)
- Branches:
- main
- Children:
- 4885da3, 579bf6d, a3aea2a
- Parents:
- 6f9c38f
- Location:
- Prototype Application/Paw5/src/main/java/finki/paw5/model
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/Adoption.java
r6f9c38f rfdfc6fa 7 7 import lombok.Data; 8 8 9 import java.time.LocalDate; 9 10 import java.util.Date; 10 11 … … 19 20 20 21 @Column(name = "start_date", nullable = false) 21 private Date startDate;22 private LocalDate startDate; 22 23 23 24 @Column(name = "end_date_foster") 24 private Date endDateFoster;25 private LocalDate endDateFoster; 25 26 26 27 @Column(name = "approved", nullable = false) … … 30 31 private int adopterId; 31 32 32 public Adoption( Date startDate,Date endDateFoster, boolean approved, int adopterId) {33 public Adoption(LocalDate startDate, LocalDate endDateFoster, boolean approved, int adopterId) { 33 34 this.startDate = startDate; 34 35 this.endDateFoster = endDateFoster; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/Donor.java
r6f9c38f rfdfc6fa 19 19 private boolean fromOrganisation; 20 20 21 @Column(name = "name_organisation ", nullable = true, length = 100)21 @Column(name = "name_organisation_donor", nullable = true, length = 100) 22 22 private String organisationName; 23 23 -
Prototype Application/Paw5/src/main/java/finki/paw5/model/Post.java
r6f9c38f rfdfc6fa 7 7 import lombok.Data; 8 8 9 import java.time.LocalDate; 9 10 import java.util.Date; 10 11 … … 19 20 20 21 @Column(name="date_post", nullable = false) 21 private Date dateCreated;22 private LocalDate dateCreated; 22 23 23 24 @Column(name="url_thumbanail", length = 200) … … 33 34 private int employeeId; 34 35 35 public Post( Date dateCreated, String thumbnailUrl, int petId, int surendeeId, int employeeId) {36 public Post(LocalDate dateCreated, String thumbnailUrl, int petId, int surendeeId, int employeeId) { 36 37 this.dateCreated = dateCreated; 37 38 this.thumbnailUrl = thumbnailUrl; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/Therapy.java
r6f9c38f rfdfc6fa 7 7 import lombok.Data; 8 8 9 import java.time.LocalDate; 9 10 import java.util.Date; 10 11 … … 22 23 23 24 @Column(name = "start_date") 24 private Date startDate;25 private LocalDate startDate; 25 26 26 27 @Column(name = "end_date") 27 private Date endDate;28 private LocalDate endDate; 28 29 29 public Therapy(String healthProblem, Date startDate,Date endDate) {30 public Therapy(String healthProblem, LocalDate startDate, LocalDate endDate) { 30 31 this.healthProblem = healthProblem; 31 32 this.startDate = startDate; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/User.java
r6f9c38f rfdfc6fa 7 7 import lombok.Data; 8 8 9 import java.time.LocalDate; 9 10 import java.util.Date; 10 11 … … 19 20 20 21 @Column(name = "date_created_user", nullable = false) 21 private Date dateCreated;22 private LocalDate dateCreated; 22 23 23 24 @Column(name = "name_user", nullable = false, length = 100) … … 30 31 private String password; 31 32 32 @Column(name = "telephone ", length = 20)33 @Column(name = "telephone_user", length = 20) 33 34 private String telephone; 34 35 35 public User( Date dateCreated, String name, String email, String password, String telephone) {36 public User(LocalDate dateCreated, String name, String email, String password, String telephone) { 36 37 this.dateCreated = dateCreated; 37 38 this.name = name; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsInterventionInVetClinic.java
r6f9c38f rfdfc6fa 7 7 import lombok.Data; 8 8 9 import java.time.LocalDate; 9 10 import java.util.Date; 10 11 … … 23 24 24 25 @Column(name = "date_of_interventing", nullable = false) 25 private Date interventionDate;26 private LocalDate interventionDate; 26 27 27 28 @Column(name = "description", length = 100) 28 29 private String description; 29 30 30 public PetNeedsInterventionInVetClinic(int petId, int vetClinicId, Date interventionDate, String description) {31 public PetNeedsInterventionInVetClinic(int petId, int vetClinicId, LocalDate interventionDate, String description) { 31 32 this.petId = petId; 32 33 this.vetClinicId = vetClinicId;
Note:
See TracChangeset
for help on using the changeset viewer.