You *could* use a UserType to workaround....

Prasad Iyer wrote:

Hi,
We are migrating existing project.
I came across the problem I have beans with primitive type. When the corresponding persistent value in database is null. The whole application fails. Gives the error that null cannot be assigned to primitive values
I totally agree with this behaviour.
So I am changing my whole primitives to wrapper classes.(ie float -> Float , char -> Character). Or is there any cheeze way to bypass this.
Am I doing this right
Your reply would be highly appreciated.
Please suggest.
regards
prasad chandrasekaran.

-- Gavin King JBoss Group +61 410534454 http://hibernate.org



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to