Skip to content
Advertisement

Tag: sql-server

JPA: how to map SQL Server uniqueidentifier type

I’ve inherited a SQL Server database that I’m trying to map via JPA. Many of the tables have a uniqueidentifier column. I’m trying to map them like so: Hibernate complains with: Answer The data type of the primary key property in the POJO determines the data type of its mapped DB column, which is specified by the Dialect class. According

Advertisement