-->
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: Unable to render boolean literal value ???
PostPosted: Thu Jan 18, 2007 2:26 pm 
Newbie

Joined: Thu Feb 02, 2006 2:42 am
Posts: 8
We just migrated to the latest version of Hibernate 3.2 from 3.1 and I'm getting this error now when trying to execute a query (that worked fine before of course).

The error is:

Message: org.hibernate.QueryException: Unable to render boolean literal value [ select distinct c from com.legalmatch.hibernate.objects.LegalCase c where c.activeFlag=false and c.deletedDate is null and c.serviceLevel in (1,2) order by c.modifyDate desc]

The query in question is formed via string concatenation, there are no bound parameters. It's the execute method that throws this.

The property in question is modeled as a primitive boolean:

<property name="activeFlag" type="boolean" column="usr_access" not-null="true" />

And I have true and false aliased in my config.

<property name="hibernate.query.substitutions">true 1, false 0</property>

I can't find a reference to this error message anywhere. What am I doing wrong? Can I no longer use primitive boolean and have to use object Boolean instead? With the new "improved boolean literal" handling mentioned in the migration guide should I no longer specify true and false as query substitutions?


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.