Changes in / [a3aea2a:6a17c29]
- Location:
- Prototype Application/Paw5/src/main
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/Adoption.java
ra3aea2a r6a17c29 7 7 import lombok.Data; 8 8 9 import java.time.LocalDate;10 9 import java.util.Date; 11 10 … … 20 19 21 20 @Column(name = "start_date", nullable = false) 22 private LocalDate startDate;21 private Date startDate; 23 22 24 23 @Column(name = "end_date_foster") 25 private LocalDate endDateFoster;24 private Date endDateFoster; 26 25 27 26 @Column(name = "approved", nullable = false) … … 31 30 private int adopterId; 32 31 33 public Adoption( LocalDate startDate, LocalDate endDateFoster, boolean approved, int adopterId) {32 public Adoption(Date startDate, Date endDateFoster, boolean approved, int adopterId) { 34 33 this.startDate = startDate; 35 34 this.endDateFoster = endDateFoster; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/Donor.java
ra3aea2a r6a17c29 19 19 private boolean fromOrganisation; 20 20 21 @Column(name = "name_organisation _donor", nullable = true, length = 100)21 @Column(name = "name_organisation", nullable = true, length = 100) 22 22 private String organisationName; 23 23 -
Prototype Application/Paw5/src/main/java/finki/paw5/model/Post.java
ra3aea2a r6a17c29 7 7 import lombok.Data; 8 8 9 import java.time.LocalDate;10 9 import java.util.Date; 11 10 … … 20 19 21 20 @Column(name="date_post", nullable = false) 22 private LocalDate dateCreated;21 private Date dateCreated; 23 22 24 23 @Column(name="url_thumbanail", length = 200) … … 34 33 private int employeeId; 35 34 36 public Post( LocalDate dateCreated, String thumbnailUrl, int petId, int surendeeId, int employeeId) {35 public Post(Date dateCreated, String thumbnailUrl, int petId, int surendeeId, int employeeId) { 37 36 this.dateCreated = dateCreated; 38 37 this.thumbnailUrl = thumbnailUrl; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/Therapy.java
ra3aea2a r6a17c29 7 7 import lombok.Data; 8 8 9 import java.time.LocalDate;10 9 import java.util.Date; 11 10 … … 23 22 24 23 @Column(name = "start_date") 25 private LocalDate startDate;24 private Date startDate; 26 25 27 26 @Column(name = "end_date") 28 private LocalDate endDate;27 private Date endDate; 29 28 30 public Therapy(String healthProblem, LocalDate startDate, LocalDate endDate) {29 public Therapy(String healthProblem, Date startDate, Date endDate) { 31 30 this.healthProblem = healthProblem; 32 31 this.startDate = startDate; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/User.java
ra3aea2a r6a17c29 7 7 import lombok.Data; 8 8 9 import java.time.LocalDate;10 9 import java.util.Date; 11 10 … … 20 19 21 20 @Column(name = "date_created_user", nullable = false) 22 private LocalDate dateCreated;21 private Date dateCreated; 23 22 24 23 @Column(name = "name_user", nullable = false, length = 100) … … 31 30 private String password; 32 31 33 @Column(name = "telephone _user", length = 20)32 @Column(name = "telephone", length = 20) 34 33 private String telephone; 35 34 36 public User( LocalDate dateCreated, String name, String email, String password, String telephone) {35 public User(Date dateCreated, String name, String email, String password, String telephone) { 37 36 this.dateCreated = dateCreated; 38 37 this.name = name; -
Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsInterventionInVetClinic.java
ra3aea2a r6a17c29 7 7 import lombok.Data; 8 8 9 import java.time.LocalDate;10 9 import java.util.Date; 11 10 … … 24 23 25 24 @Column(name = "date_of_interventing", nullable = false) 26 private LocalDate interventionDate;25 private Date interventionDate; 27 26 28 27 @Column(name = "description", length = 100) 29 28 private String description; 30 29 31 public PetNeedsInterventionInVetClinic(int petId, int vetClinicId, LocalDate interventionDate, String description) {30 public PetNeedsInterventionInVetClinic(int petId, int vetClinicId, Date interventionDate, String description) { 32 31 this.petId = petId; 33 32 this.vetClinicId = vetClinicId; -
Prototype Application/Paw5/src/main/resources/application.properties
ra3aea2a r6a17c29 9 9 spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true 10 10 11 spring.jpa.hibernate.ddl-auto= validate11 spring.jpa.hibernate.ddl-auto=update 12 12 spring.jpa.show-sql=true
Note:
See TracChangeset
for help on using the changeset viewer.