-->
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: BUG? Adding Aliases to Criteria change results
PostPosted: Thu Oct 17, 2013 4:15 pm 
Newbie

Joined: Thu Oct 17, 2013 4:10 pm
Posts: 1
Hello, I found a really weird bug. Can anyone tell me if its real, or if I don't know something important about Hibernate

I am doing a search with Session.createCriteria(). When I add aliases to my criteria, but don't use them, the results change. Here's the block of aliases. When I comment them out, the results change

cr = cr.createAlias("activityDialogs", "ads")
.createAlias("ads.activityMatchCourseUnits", "ads_amcus")
.createAlias("ads_amcus.courseUnit", "ads_amcus_cu")
.createAlias("ads_amcus_cu.course", "ads_amcus_cu_c");

Of course, cr is a Criteria with all sorts of other aliases and Restrictions added to it. However, I don't see how adding an alias (and not referencing it) could change anything.

Am I confused?

Thanks in advance
Peter


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.