Hi dosapati,
I had the same problem as you ('0' being saved into the DB regardless of the
value set).  It turns out that the problem was with the mysql jdbc driver I
was using.  I was using the "org.gjt.mm.mysql.Driver" version but am now
using the "com.mysql.jdbc.Driver" version (the so-called official one
downloadable from http://www.mysql.org).
John



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

************************************************************************
This e-mail and any files transmitted with it are confidential and may be
privileged and are intended solely for the individual named/ for the use of
the individual or entity to whom they are addressed.If you are not the
intended addressee, you should not disseminate, distribute or copy this
e-mail.Please notify the sender immediately if you have received this e-mail
by mistake and delete this e-mail from your system.If you are not the
intended recipient, you are notified that reviewing, disclosing, copying,
distributing or taking any action in reliance on the contents of this e-mail
is strictly prohibited.Please note that any views or opinions expressed in
this e-mail are solely those of the author and do not necessarily represent
those of Traventec Limited.E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, or arrive late or incomplete.Traventec Limited therefore does not
accept liability for any errors or omissions in the contents of this
message, which arise as a result of e-mail transmission.The recipient should
check this e-mail and any attachments for the presence of viruses.This
e-mail has been swept for computer viruses however Traventec Limited accepts
no liability for any damage caused by any virus transmitted by this e-mail.


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to