Oliver Chua wrote:Hi,
In your log4j.properties, add this
<logger name="org.hibernate.SQL" additivity="false">
<level value="DEBUG" />
<appender-ref ref="Console" />
so you can see the sql statements
I've tried recreating the problem but it worked fine for me.
Below are the log entries when creating the table and inserting a record
CREATE TABLE "Individual_Simple_Entity1"
"ID" NUMBER(19,0) NOT NULL ENABLE,
"BOOLEANFIELD" NUMBER(1,0) NOT NULL ENABLE,
PRIMARY KEY ("ID") ENABLE
insert into Individual_Simple_Entity1 (booleanField, id) values (?, ?)
binding 'true' to parameter: 1
binding '1' to parameter: 2
in the db, the value of booleanField becomes 1