Changes in / [a3aea2a:6a17c29]


Ignore:
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  
    77import lombok.Data;
    88
    9 import java.time.LocalDate;
    109import java.util.Date;
    1110
     
    2019
    2120    @Column(name = "start_date", nullable = false)
    22     private LocalDate startDate;
     21    private Date startDate;
    2322
    2423    @Column(name = "end_date_foster")
    25     private LocalDate endDateFoster;
     24    private Date endDateFoster;
    2625
    2726    @Column(name = "approved", nullable = false)
     
    3130    private int adopterId;
    3231
    33     public Adoption(LocalDate startDate, LocalDate endDateFoster, boolean approved, int adopterId) {
     32    public Adoption(Date startDate, Date endDateFoster, boolean approved, int adopterId) {
    3433        this.startDate = startDate;
    3534        this.endDateFoster = endDateFoster;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/Donor.java

    ra3aea2a r6a17c29  
    1919    private boolean fromOrganisation;
    2020
    21     @Column(name = "name_organisation_donor", nullable = true, length = 100)
     21    @Column(name = "name_organisation", nullable = true, length = 100)
    2222    private String organisationName;
    2323
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/Post.java

    ra3aea2a r6a17c29  
    77import lombok.Data;
    88
    9 import java.time.LocalDate;
    109import java.util.Date;
    1110
     
    2019
    2120    @Column(name="date_post", nullable = false)
    22     private LocalDate dateCreated;
     21    private Date dateCreated;
    2322
    2423    @Column(name="url_thumbanail", length = 200)
     
    3433    private int employeeId;
    3534
    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) {
    3736        this.dateCreated = dateCreated;
    3837        this.thumbnailUrl = thumbnailUrl;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/Therapy.java

    ra3aea2a r6a17c29  
    77import lombok.Data;
    88
    9 import java.time.LocalDate;
    109import java.util.Date;
    1110
     
    2322
    2423    @Column(name = "start_date")
    25     private LocalDate startDate;
     24    private Date startDate;
    2625
    2726    @Column(name = "end_date")
    28     private LocalDate endDate;
     27    private Date endDate;
    2928
    30     public Therapy(String healthProblem, LocalDate startDate, LocalDate endDate) {
     29    public Therapy(String healthProblem, Date startDate, Date endDate) {
    3130        this.healthProblem = healthProblem;
    3231        this.startDate = startDate;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/User.java

    ra3aea2a r6a17c29  
    77import lombok.Data;
    88
    9 import java.time.LocalDate;
    109import java.util.Date;
    1110
     
    2019
    2120    @Column(name = "date_created_user", nullable = false)
    22     private LocalDate dateCreated;
     21    private Date dateCreated;
    2322
    2423    @Column(name = "name_user", nullable = false, length = 100)
     
    3130    private String password;
    3231
    33     @Column(name = "telephone_user", length = 20)
     32    @Column(name = "telephone", length = 20)
    3433    private String telephone;
    3534
    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) {
    3736        this.dateCreated = dateCreated;
    3837        this.name = name;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsInterventionInVetClinic.java

    ra3aea2a r6a17c29  
    77import lombok.Data;
    88
    9 import java.time.LocalDate;
    109import java.util.Date;
    1110
     
    2423
    2524    @Column(name = "date_of_interventing", nullable = false)
    26     private LocalDate interventionDate;
     25    private Date interventionDate;
    2726
    2827    @Column(name = "description", length = 100)
    2928    private String description;
    3029
    31     public PetNeedsInterventionInVetClinic(int petId, int vetClinicId, LocalDate interventionDate, String description) {
     30    public PetNeedsInterventionInVetClinic(int petId, int vetClinicId, Date interventionDate, String description) {
    3231        this.petId = petId;
    3332        this.vetClinicId = vetClinicId;
  • Prototype Application/Paw5/src/main/resources/application.properties

    ra3aea2a r6a17c29  
    99spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
    1010
    11 spring.jpa.hibernate.ddl-auto=validate
     11spring.jpa.hibernate.ddl-auto=update
    1212spring.jpa.show-sql=true
Note: See TracChangeset for help on using the changeset viewer.