Ignore:
Timestamp:
02/02/23 18:27:30 (17 months ago)
Author:
SazdovaEkaterina <sazdovaekaterina@…>
Branches:
main
Children:
4885da3, 579bf6d, a3aea2a
Parents:
6f9c38f
Message:

change to LocalDate

Date (Java) was incompatible with date (postgresql) because it expected a timestamp type, not date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/Therapy.java

    r6f9c38f rfdfc6fa  
    77import lombok.Data;
    88
     9import java.time.LocalDate;
    910import java.util.Date;
    1011
     
    2223
    2324    @Column(name = "start_date")
    24     private Date startDate;
     25    private LocalDate startDate;
    2526
    2627    @Column(name = "end_date")
    27     private Date endDate;
     28    private LocalDate endDate;
    2829
    29     public Therapy(String healthProblem, Date startDate, Date endDate) {
     30    public Therapy(String healthProblem, LocalDate startDate, LocalDate endDate) {
    3031        this.healthProblem = healthProblem;
    3132        this.startDate = startDate;
Note: See TracChangeset for help on using the changeset viewer.