写道
hql.append(" from DutyCallover t left join fetch t.duty where 1=1 ");
Hibernate报错:
query specified join fetching, but the owner of the fetched association was not present in the select list
参考:
http://www.hibernate.org/250.html?cmd=prntdoc
写道
Furthermore, a query that specifies join fetching, but the owner of the fetched association was not present in the select list throws an exception now: "select b from A join fetch a.bees b" - this query makes no sense, remove the "fetch".
去掉fetch就可以,但是返回的每个Page.resultList对象是二维数组,index为0是目标对象DutyCallover,index为1是它的关联对象DutyInfo.
分享到:
相关推荐
#hibernate.query.factory_class org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory ################# ### Platforms ### ################# ## JNDI Datasource #hibernate.connection....
电脑提示“No input file specified”怎么办.docx
nginx提示No input file specified怎么办.docx
VB编程实现网络搜索指定邮件地址代码VB programming code to search the specified e-mail address
写入数据至用户指定的单元格,用labview开发环境,labview与excel相结合
consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser ...
make.exe c msys mingw 网上找了很多都不能用,后来找到了这个,希望对你有帮助
this programme can help you to send the password to the specified email.
提示No input file specified的解决方法.docx
主要讲述说话人识别的具体原理和实现方法,从而便于人们理解以及识别
IllegalStateException: The specified child already has a parent.我的博客中有文章讲解
PYNQ加速YOLOv2的demo,需要PYNQ平台,希望对感兴趣的开发者有用
【内容】: 问题情况 出现之前做了什么 出错之前通过这个功能增加了个错误的vm参数:-agent:xxx.jar 怎么办? ...然而,我这并没有这个文件。百思不得其解,重装等各种方式都试过还是不能用。...
Preconditions: Verify that the specified assembly and part exist. Postconditions: 1. Opens the specified assembly document. 2. Examine the graphics area, then press F5. 3. Changes the selected ...
specified virtual disk needs repair。附修复工具和使用方法。 分数不够的可以到VM官方下载修复工具,如果找不到就贡献1分下载我上传的吧:) =====================================================================...
项目部署出现的异常 The function XXX must be used with a prefix when a default namespace is not specified Servlet response already use stream, Writer not possible org.hibernate.hql.ast.HqlToken
Take a BMP and converts it to a specified number of dpi.
-sd <File> <ImageFile> Modify setup utility default setting with specified file on image file. -gstr <ImageFile> <File> -s|-b Read image file, and generate setup(-s) or setup browser(-b) string ...
报错crashsender.exe is not found the specified path
> Targets not specified. Assuming: node10-win-x64> Fetching base Node.js binaries to PKG_CACHE_PATH fetched-v10.17.0-win-x64 [ ] 0%> Error! getaddrinfo ENOENT github-production-release-asset-2e65be....