-->
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.  [ 2 posts ] 
Author Message
 Post subject: Query on a list
PostPosted: Wed Feb 23, 2005 10:43 am 
Beginner
Beginner

Joined: Wed Aug 18, 2004 10:03 am
Posts: 28
Hibernate version: 2.1.7

I have a class A, with a list of class B, this is the mapping...

...
<property name="xxx"/>

<list name="bs" lazy="true">
<key column="b_uid"/>
<index column="posn"/>
<one-to-many class="B"/>
</list>

...

I need get all B classes for an A order by posn with a query...

Any idea ?

regards
epsino


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 23, 2005 11:14 am 
Beginner
Beginner

Joined: Wed Aug 18, 2004 10:03 am
Posts: 28
I solve this with index(b) in order by clause.

regards
epsino


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.