Hi,
we have implemented a UserType which maps to two columns: statename and stateclass.
When we use Restrictions.ne() in Query for a property with this Usertype,
the resulting sql contains:
where (this_.STATENAME<>? and this_.STATECLASS<>?)
instead of
where (this_.STATENAME<>? or this_.STATECLASS<>?)
violating DeMorgan's Laws.
Is this a known bug or should I submit it to JIRA?
The Hibernate-Version is 3.1.rc2.
We will work around this by using Restrictions.not(Restrictions.eq(..)).
Regards,
Ingo Schildmann
|