-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: mapping of boolean (java primitive) and IBM DB2 database
PostPosted: Thu Sep 15, 2005 3:08 am 
Newbie

Joined: Thu Sep 15, 2005 2:03 am
Posts: 1
Hi,
Does anybody know if boolean (java primitive) mapping can be done for DB2 in Hibernate or not. Java Boolean Object is possible but where & what to change/add for boolean primitive mapping.
The column is of type SMALLINT & java object has boolean variable. ie In DB2 value is 0/1 but in object it is true/false
I'm getting the foll. exception
Caused by: com.ibm.db2.jcc.b.SQLException: "FALSE" is not valid in the context where it is used.
The sql that is beeing used is - select taskinstan0_.ID_ as ID1 from JBPM_TASKINSTANCE taskinstan0_ where taskinstan0_.ISCANCELLED_=false)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.