i cannot insert an object containing a Boolean object.
i have a class like:
Code:
public class Blah
{
Long id;
String type;
Boolean obsolete = new Boolean(false);
....
}
and a mapping file like this
Code:
<hibernate-mapping>
....
<property name="obsolete" column="OBSOLETE" type="boolean"/>
....
</hibernate-mapping>
But when i want to add an object to the DB, it gives me
Code:
java.sql.SQLException: Wrong data type: For input string: "FALSE" in statement
and the column for that property that hibernate creates is like this:
Code:
create table BLAH (...OBSOLETE TINYINT null...)
i use in memory HSQLBD db (actual db is MSSQL but i override it) and Hibernate 2.1.2