Pallu Sagar wrote:Please chk your table relationship..seems to be strange for me..nyways...
About relationship , the system is like user cannot exist without organisation....
If your query has select clause then you cant get 'Organisation' object resultset... query would return you a resultset...
Then you have to write your own QueryResutSet mapper for mapping / binding...
Sorry , i did nt understand that i cannot get my Entity Object by using SELECT clause .
Can you please provide me example where we fetch selected attributes from two related tables and getting back an Entity as result of uniqueResultset?
Simple way to do is remove select clause and identify your fetching strategies...and apply those on collection