-->
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: HQL: Selecting data from a Map contained in an object
PostPosted: Tue Mar 23, 2004 3:42 pm 
Beginner
Beginner

Joined: Mon Dec 01, 2003 8:48 pm
Posts: 47
Location: Texas, United States
Suppose I have class

public class A {

Map someData;

}

How do I query data out of the Map?

something like this...

s.createQuery("from A where A.someData.[column name?]");

Thank you!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 23, 2004 7:48 pm 
Regular
Regular

Joined: Mon Nov 24, 2003 6:36 pm
Posts: 105
would help us to have more info, but yes, you generally use the brackets to indicate the index position in the query.


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.