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: Accessing hbm_index in many-to-many association
PostPosted: Tue Jul 13, 2004 12:10 pm 
Beginner
Beginner

Joined: Fri Sep 12, 2003 5:13 am
Posts: 22
Hello,

I would like to know if there is a way, a tip, to access the hbm_index value in HQL scalar query (the index() function is not available for this kind of association) ?

For example, imagine a many-to-many association like this :

Order <*---*> Item

An Order has a List of Items.

For a given Order, I want to make a scalar query which gives me a collection of item's names order with the order of the list of Items in that Order (it means with the hbm_index column).

Thanks

Philippe


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.