Hibernate version:
latest GA
I think i have found a bug in HSQL Dialect. When using a *native* query involving a boolean column, i get
*org.hibernate.MappingException: No Dialect mapping for JDBC type: 16*
Example:
Code:
@Entity public class Foo{
@Id int id;
boolean bar;
[..]
}
Code:
SELECT id,bar FROM Foo f
This problem can be worked around by using
Code:
public class CustomHSQLDialect extends org.hibernate.dialect.HSQLDialect
{
public CustomHSQLDialect()
{
registerColumnType(Types.BOOLEAN, "boolean");
registerHibernateType(Types.BOOLEAN, "boolean");
}
}
Should i file a bug for that, or is this a well-known limitation?