query specified join fetching, but the owner of the fetched association was not present in the selec
2017-02-23 21:53
288 查看
query specified join fetching, but the owner of the fetched association was not present in the select list
在使用EntityGraph查询时报了这个错误,它的意思是说@EntityGraph中制定的某个属性没有在结果集中出现。该方法的代码如下:
@EntityGraph(attributePaths={"staff"},type=EntityGraphType.FETCH) @Query("from Account") public List<Account> findAll();
后来发现查询出来的结果集中,会出现
staff为空的记录,因此只需要将查询语句改成
@Query("from Account where staff != null")就能解决该问题。
相关文章推荐
- query specified join fetching, but the owner of the fetched association was not present in the selec
- query specified join fetching, but the owner of the fetched association was not present in the selec
- Hibernate异常:query specified join fetching, but the owner of the fetched association was not present in the select list
- org.hibernate.QueryException: query specified join fetching, but the owner of the fetched association was not present in the sel
- query specified join fetching, but the owner of the fetched association was not present in the select list
- Hibernate异常:query specified join fetching, but the owner of the fetched association was not present
- 【解决Hiberate】 query specified join fetching, but the owner of the fetched association..
- hibernate异常Hibernate异常:query specified join fetching, but the owner of the fetched association was n
- org.hibernate.QueryException: query specified join fetching, but the owner of the fetched associatio
- Hint: A potential Change-Id was found, but it was not in the footer (last paragraph) of the commit message
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- Only one expression can be specified in the select list when the subquery is not introduced with EXI
- 当Xib文件删掉之后,解决报错信息:NSInternalInconsistencyException loaded xxx nib but the view outlet was not set.
- was cached in the local repository, resolution will not be reattempted until the update interval of
- 当Xib文件删掉之后,解决报错信息:NSInternalInconsistencyException loaded xxx nib but the view outlet was not set.
- 解决A program file was not specified in the launch configuration.问题
- org.hibernate.WrongClassException: Object with id: 3 was not of the specified subclass
- Only one expression can be specified in the select list when the subquery is not introduced with(求助)
- 转:The given key was not present in the dictionary.(问题解决方法)
- The centos disc was not found in any of your dr...