If the Groups to User relationship is defined as lazy and you executed the following query:
Code:
from Group as g where g.user.id = :userid
The user instance should not be initialized. It will be initilized once you call a method on the assocaited User instance. If you're after a Group, don't execute a query for a User, go after the Group. If you load the User to get the Group you will load the user data.
Try it out an see what happens. It's the only way to know for sure :)
Ryan-
P. S. Don't forget to rate