Hibernate version: 3.3.0.GA
Name and version of the database: PostgreSQL 8.3
JDBC driver version: 8.3-603 JDBC 3
Hello,
Our database tables uses primary keys of uuid type. We are trying to employ hibernate, but attempt to insert record, containing value of type java.util.UUID, results in PSQLException with message "column 'entity_id' is of type uuid but expression is of type bytea".
Id field getter is annotated as following:
@Basic(optional = false)
@Column(name = "entity_id")
I've seen similar question on this forum but it stays unanswered. So is there actually a way to use uuid pkey from Hibernate with PostgreSQL?
|