`
wandejun1012
  • 浏览: 2690217 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

query specified join fetching, but the owner of the fetched association was not

 
阅读更多

 

有形如下面的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

 

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics