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
Post a Comment