-->
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: many-to-many order by
PostPosted: Wed Feb 15, 2006 5:40 am 
Newbie

Joined: Thu Nov 24, 2005 9:57 am
Posts: 4
Location: Fribourg (Switzerland)
Bonjour,

J'aimerais savoir s'il est possible de faire un order by directement dans le fichier de mapping, sans passer par un filtre ou un comparator, sur une relation many-to-many.

Merci.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 15, 2006 5:53 am 
Newbie

Joined: Mon Jan 16, 2006 10:49 am
Posts: 12
as tu pensez à utiliser formula dans le tag many ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 21, 2006 7:41 am 
Beginner
Beginner

Joined: Thu Feb 16, 2006 9:53 am
Posts: 24
Code:
<set name=""
             table=""
             order-by="MY_COL1, MY_COL2 asc">
            <key column=""/>
            <many-to-many class="Event" column="EVENT_ID"/>
</set>


Il suffit d'ajouter un attribut order-by à ton set/list/bag.


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.