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?
|