Failover @Type for h2? Failover @Type for h2? postgresql postgresql

Failover @Type for h2?


You could try to extend H2Dialect and bind varchar to type Type.otherpg-uuid is using Type.OTHER

public class H2PostgresDialect extends H2Dialect {    public H2PostgresDialect() {        super();        registerColumnType(Types.OTHER, "varchar(255)");    }}

Remember to use register custom dialect class instead of standard one

But why just don't use

@Idprivate UUID id = UUID.randomUUID();