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

    r6f9c38f rfdfc6fa  
    77import lombok.Data;
    88
     9import java.time.LocalDate;
    910import java.util.Date;
    1011
     
    1920
    2021    @Column(name="date_post", nullable = false)
    21     private Date dateCreated;
     22    private LocalDate dateCreated;
    2223
    2324    @Column(name="url_thumbanail", length = 200)
     
    3334    private int employeeId;
    3435
    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) {
    3637        this.dateCreated = dateCreated;
    3738        this.thumbnailUrl = thumbnailUrl;
Note: See TracChangeset for help on using the changeset viewer.