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/Adoption.java

    r6f9c38f rfdfc6fa  
    77import lombok.Data;
    88
     9import java.time.LocalDate;
    910import java.util.Date;
    1011
     
    1920
    2021    @Column(name = "start_date", nullable = false)
    21     private Date startDate;
     22    private LocalDate startDate;
    2223
    2324    @Column(name = "end_date_foster")
    24     private Date endDateFoster;
     25    private LocalDate endDateFoster;
    2526
    2627    @Column(name = "approved", nullable = false)
     
    3031    private int adopterId;
    3132
    32     public Adoption(Date startDate, Date endDateFoster, boolean approved, int adopterId) {
     33    public Adoption(LocalDate startDate, LocalDate endDateFoster, boolean approved, int adopterId) {
    3334        this.startDate = startDate;
    3435        this.endDateFoster = endDateFoster;
Note: See TracChangeset for help on using the changeset viewer.