How can I tell hibernate that a Date should be created as a Date in postgres SQL database, and not as a timestamp?
According to www.postgresql.org/docs/9.3/static/datatype-datetime.html Date should be possible, but how?
@Entity
class Test {
private java.util.Date date;
}
becomes:
CREATE TABLE test
(date timestamp without time zone)
java.sql.Date.