有形如下面的HQL语句:
Query query = session.createQuery(“SELECT COUNT(*) AS count FROM Employee I inner join I.user O”)
执行完后报RT的错误,解决方案就是把fetch去掉就行了。
refurl:http://bbs.csdn.net/topics/310060174
http://stackoverflow.com/questions/12496945/join-fetch-query-specified-join-fetching-but-the-owner-of-the-fetched-associa
http://stackoverflow.com/questions/12459779/query-specified-join-fetching-but-the-owner-of-the-fetched-association-was-not