Hello,
I have a column in my table which is of type 'text'.
When using hibernate 3.2.6, I had no problem with using the annotation 'Lob' for that type of column.
I recently switched to hibernate 3.3.1 and now it fails to validate the table with the error: Found: text, expected: longtext
If I use no annotation for that column, the error i receive is: Found: text, expected: varchar(255)
I guess this has something to do with MySQLDialect class, which now looks like this: protected void registerVarcharTypes() { registerColumnType( Types.VARCHAR, "longtext" ); // registerColumnType( Types.VARCHAR, 16777215, "mediumtext" ); // registerColumnType( Types.VARCHAR, 65535, "text" ); registerColumnType( Types.VARCHAR, 255, "varchar($l)" ); }
So, in hibernate 3.3.1, how can I work with a table that has a column of type text ? What annotation should I use ?
Regards, Mihaela
|