-->
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: index of maps containing mana-to-many relationship
PostPosted: Fri Apr 09, 2004 5:51 am 
Newbie

Joined: Mon Oct 20, 2003 1:20 pm
Posts: 3
Hi,

Does anybody know how I can access - in HQL - the index of a map containing a many-to-many relatonship?

If the map contains normal elements I can use the index function

FROM Country country, c.translations as countryTranslation
WHERE index(countryTranslation) = 'en'

but this doesn't seem to work when the map contains many-to-many elments.

FROM Certificate c, c.businesses as x
WHERE index(x) = 'roleX'

I get a message saying that the contained object (Business in this case) does not support the index property (Could not resolve property: index of: Business )

As an alternative, can I use the index in a HQL join (inner join ...)?

PS: where c.businesses( 'roleX' ) = x works fine, but I'd like to access the actual index to optimise the query


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.