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/relations/PetNeedsInterventionInVetClinic.java

    r6f9c38f rfdfc6fa  
    77import lombok.Data;
    88
     9import java.time.LocalDate;
    910import java.util.Date;
    1011
     
    2324
    2425    @Column(name = "date_of_interventing", nullable = false)
    25     private Date interventionDate;
     26    private LocalDate interventionDate;
    2627
    2728    @Column(name = "description", length = 100)
    2829    private String description;
    2930
    30     public PetNeedsInterventionInVetClinic(int petId, int vetClinicId, Date interventionDate, String description) {
     31    public PetNeedsInterventionInVetClinic(int petId, int vetClinicId, LocalDate interventionDate, String description) {
    3132        this.petId = petId;
    3233        this.vetClinicId = vetClinicId;
Note: See TracChangeset for help on using the changeset viewer.