Try using @JdbcType(VarcharType.class) (or whatever it is exactly I can’t remember correctly) as i think in hibernate 6 it treats UUIDs as a string and converts them back.
@JdbcType(VarcharType.class)