I have field in Entity:
@Column(name = "BILL_DATE")
private LocalDate billDate;
And my system work with oracle and posthresql. In posgresql this columt has type timestamp but in oracle - date. When I try start server with postgeSQL I get error:
wrong column type encountered in column [bill_date] in table [charges]; found [timestamp (Types#TIMESTAMP)], but expecting [date (Types#DATE)]
if I add annotation @Temporal(TemporalType.DATE) I get another error:
Caused by: org.hibernate.AnnotationException: @Temporal should only be set on a java.util.Date or java.util.Calendar property
But I do not want use java.util.Date and java.util.Calendar. How to solve this problem?