-->
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: How to filter a collection of collection
PostPosted: Mon Nov 14, 2005 2:32 pm 
Newbie

Joined: Mon Oct 24, 2005 9:16 am
Posts: 7
Lets say that I have

A ---->* B -----> * C

This is working fine :

List X=session.createFilter( a.getBs(),"order by this.fieldinB").list();

But what about I want to order on a field in C

This is not working:


List X=session.createFilter( ((B) a.getBs()).getCs(),"order by this.fieldinC").list();

How can I sort my entries on a field in C ?


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.