-->
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: Restrictions.ne and UserType with more than one columns
PostPosted: Fri Oct 13, 2006 10:36 am 
Newbie

Joined: Wed Oct 08, 2003 9:40 am
Posts: 2
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


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.