java - eager fetch objects in collections -


i have cat objects mapped using hibernate similar 1 mentioned in manual: http://docs.jboss.org/hibernate/core/4.3/manual/en-us/html_single/ (example 4.1) . fields in cat class set lazily fetched, write hql query eagerly fetches cat object along kittens. tried using from cat c inner join fetch c.kitten, doesn't fetch fields of each of kittens.

my question is: how can write single hql query eagerly fetches items in collection? aware of eager fetching collections in hibernate scrollableresults don't think there solution there (and if possible don't want change mapping files eager fetching).


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -