-->
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: TypeMismatchException on object comparison
PostPosted: Tue Oct 17, 2006 5:23 am 
Newbie

Joined: Tue Mar 08, 2005 8:00 am
Posts: 10
Hibernate version: 3.2.0GA

Let's suppose to have two entities, A and B.
A has an id and a one-to-one constrained relationship to B (PK relationship) called "bRel".
B has only an id.

The following HQL query:
from A a, B b where a.bRel = b

works perfectly in Hibernate 3.1.x, but fails on 3.2 with:
org.hibernate.TypeMismatchException: left and right hand sides of a binary logic operator were incompatibile [B : B].

I know that is possible to use the join syntax, but isn't this supposed to work?

Is direct object comparison deprecated in HB 3.2?


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.