-->
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: Need Set and Map Examples in HQL
PostPosted: Wed Jul 09, 2008 12:02 am 
Newbie

Joined: Tue Jul 08, 2008 8:04 am
Posts: 2
Hi All,

I am new to Hibernate and HQL.
I know to write HQL queries for String type and integer types
Can anyone please give me the sample examples regarding Set and Map types.
Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 09, 2008 5:13 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Well, HQL queries really depend on OBJECTS, not the Java collection classes.

So, rather than concentrating on Lists or Sets, concentrate on the actualy classes you have. It's from your Java objects that HQL queries should be derived from, not Java collection classes.

What are your objects? What do you want to query?

Check out this little tutorial on mastering Hibernate Query Language for some more background:

http://jpa.ezhibernate.com/Javacode/learn.jsp?tutorial=08masteringhqlandnamedqueries

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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.