I am using: Hibernate 2.0.1, MySQL - 4.0.12 database.

When boolean is used in hbm mapping files, SchemaExport is generating 'tinyint' type column for MySQL DB. But at runtime the value is always getting saved as '0' in the column even for 'true' value.

But the same thing is working when I use Boolean as the type. Why there is a difference between primitive datatype and Object wrapper. will this problem occur for other datatypes also like long, double, float. I want to use primitive datatypes. Please let me know if you have fix for this.

thanks
dosapati

Reply via email to