Thanks but i think you miss understood my question.
I dont use lazy because of the way the application handles the session, we also use data transfer objects. I want to do the following in hql.
MyClass
Property, String:Name
Property, String:Id
Property, Bag: Logins
Property, Bag: Pictures
I want to get the the string properties and the Bag with logins in a hql-select.
Like
select p.Name, p.Id, elements(p.Logins) from Person p
Want it to NOT select the Pictures-bag, executing the query above, will not result in any hits. And if i leave elements out, it says it expect its.
Thanks
|