-->
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: Use of Criteria: Create Alias
PostPosted: Thu Feb 12, 2009 8:23 am 
Newbie

Joined: Tue Dec 04, 2007 10:20 am
Posts: 13
Hello and thanks for your help in advance

I'm using criteria and sometimes, to access to different levels of objects, i have to do the criteria.createAlias (path,alias) to join two objects and some other times, I have to set object1.object2 to be able to access to the data on the object 2. I thought it depended on if the second object was a component or not but I have realized that it is not the reason. So anyone can tell me why sometimes I have to make the join, and sometimes, it's enough with concatenate the names of the objects separated by '.' ?


PS: One last question. Does anybody know if it exists a plug-in or a patch to make a join to a collection of components?

Thank you very much for your support and help in advance, really, thanks


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.