Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.1
Mapping documents:
hi all,
i am experiencing huge problems in retrieving lazy-loaded collections with hibernate.....
quickly, i have following classes
Class A {
String field1
String field2
String field 3
List collection4
}
field4 is lazy loaded
i have an usecase where i have to retrieve field1, field2 and the collection (field 4)
i am writing the following query
Code:
select test.field1 as id
test.field2 as f2 from A as test
join fetch test.collection4
where test.field1 = :ABC "
hibernate3 complaints saying that
Code:
org.springframework.orm.hibernate3.HibernateQueryException: query specified join fetching, but the owner of the fetched association was not present in the select list
anyone could help me out?
thanks in advance and regards
marco