-->
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: HQL: get "extra data" when executing the query
PostPosted: Mon Feb 18, 2008 10:04 am 
Newbie

Joined: Mon Feb 18, 2008 4:46 am
Posts: 6
Is there a way to retrieve "extra" data through HQL ?

I can write "extra" when i map a collection,
and when i execute the HQL i will get some extra data on it.
but i want to perform an HQL which specify on some "field"
to "retrieve" the "extra data" and not on the mapping.

BTW, the association is of type many-to-many.


Below is an explanation on how it can be done with the mapping,
and i want to do the same only with HQL...

Use lazy="extra" on collections for "smart" collection behavior, i.e. some collection operations such as size(), contains(), get(), etc. do not trigger collection initialization. This is only sensible for very large collections.

taken from "A Short Primer On Fetching Strategies"
http://www.hibernate.org/315.html :


Thanks,
Eran.


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.