Hello Santosh-
Not mentioning " groupmaster" alias was a mistake in the query. The problem exists even after the corrections.
Can you or anybody provide other pointers.
regards,
Amitabh.
santosh wrote:
Hi,
I can't say whether this would work as I have no means to simulate ur usecase. But it seems u not specified the alias name group "groupmaster" in our HQL.
The query generated thru ur HQL , at runtime is as
follows
select groupmaster.groupName, groupmaster.groupAccessType, groupmaster.id, member.firstName, member.lastName
from com.trackmyround.enhance.group.beans.GroupMaster
join com.trackmyround.enhance.group.beans.GroupMembers as groupmember
on (groupmaster.id=groupmember.groupId) join
com.trackmyround.domain.Member member
on (groupmaster.groupAdminId=member.id) where groupmember.memberId = 186
U should modify ur HQL in java file such that ,at runtime ,the 2nd line of the query reads as follows.
from com.trackmyround.enhance.group.beans.GroupMaster groupmaster .
Let me know if this helps.
Thanks,
santosh