-->
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: 3.2.6 Hql query map index
PostPosted: Fri Mar 07, 2008 6:12 am 
Newbie

Joined: Fri Mar 07, 2008 5:38 am
Posts: 2
Hibernate version: 3.2.6

Hi all,

I've been reading, searching for a solution to a problem but have not been successfull so far...

Context:
class Person {
Map<Integer, Quota> quotas;
}

How could one obtain all the person who don't have a given index set?

Something in the line of:

from Person p where p.quotas[2009] is null

This obviously doesn't work as the expression will never be true

Regards,
Stefan


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 07, 2008 6:38 am 
Newbie

Joined: Fri Mar 07, 2008 5:38 am
Posts: 2
Never mind,

I found the solution while re-reading the reference

from Person p where " + year + " not in indices(p.quotas)


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.