Hibernate 6.1 seems to not include the PostgresUUIDType class for conversion. We were utilising this in the Type annotation for one of our columns to convert standard UUIDs to PostgresUUIDs upon persistence.
@Column(columnDefinition = "uuid")
@Type(type = "org.hibernate.type.PostgresUUIDType")
private UUID id;
Then after upgrading HIbernate to 6.1.x , modified to:
@Column(columnDefinition = "uuid")
@Type(org.hibernate.type.PostgresUUIDType.class)
private UUID id;
However, class is not found.
I couldn’t find any documentation on how to implement this conversion in the newer versions of Hibernate - is this now done implicitly or is there another way?
Thanks!