Hi, I want to display a field in a Java class
@Column(name = "date_of_birth") @Temporal(TemporalType.DATE) private Date dateOfBirth;
in the field in my table:
date_of_birth date,
but now when I try to run my application, I got an exception:
Caused by: org.hibernate.HibernateException: Wrong column type in public.users for column date_of_birth. Found: date, expected: timestamp
This is my configuration file:
dataSource.driverClassName=org.postgresql.Driver hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect hibernate.hbm2ddl.auto=validate hibernate.show_sql=false
What could be the problem?
Thanks Dawid
Dawid source share