Conversion of column from UUID to PostgresUUID in Hibernate 6.1

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!

Just remove the @Column and @Type annotation. Hibernate 6.1 uses this type by default. See hibernate-orm/migration-guide.adoc at 6.0 · hibernate/hibernate-orm · GitHub