When type "text" is used for an entity, Hibernate uses the "longvarchar" SQL type.
Using H2 database, Hibernate cannot validate (even if Hibernate created the schema itself).
The error is such :
According to the H2Dialect, "longvarchar" should be used :
registerColumnType( Types.LONGVARCHAR, "longvarchar" );
Anyway, the type in H2 is :
I will attach a test case and patch proposal.
|