-->
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.  [ 3 posts ] 
Author Message
 Post subject: Sorting a Many-to-Many relationship
PostPosted: Tue Nov 16, 2004 10:34 am 
Newbie

Joined: Tue Nov 16, 2004 10:26 am
Posts: 1
Hello All,

I'm having a problem sorting a list of objects in a many-to-many relationship. I've to two tables, MapView and MapLayerGroup and a relationship table called MapViewLayerGroups. I have defined a mapLayerGroups collection in the MapView object that contains a list of associated MapLayerGroup objects.

What I want to do is sort this list based on a column in the MapLayerGroup object called priority. I tried using the order-by xdoclet tag in my many-to-many relationship but it only looks at the MapViewLayerGroups table. Is there anyway around this without having to query the MapLayerGroup list myself and putting it on the MapView object?

Thanks,
Graham


Top
 Profile  
 
 Post subject: Same problem
PostPosted: Thu Nov 18, 2004 5:46 am 
Newbie

Joined: Wed Sep 01, 2004 5:31 am
Posts: 18
I am having the exact same problem, so if you've found a solution please let me know.

Cheers A.Kikr


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 18, 2004 5:50 am 
Newbie

Joined: Wed Sep 01, 2004 5:31 am
Posts: 18
Oh, apparently its not supported, see:

http://forum.hibernate.org/viewtopic.ph ... ny+orderby

This is really a major flaw isn't it?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.