`

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

 
阅读更多
from TSignpartDTO Z left join fetch  Z.tbTProjectDTO B

  <many-to-one
   class="com.sinovatech.sunshine.signpart.model.dto.TProjectDTO"
   lazy="false" fetch="join" name="tbTProjectDTO">
   <column length="32" name="PROJECT_ID">
    <comment>项目ID</comment>
   </column>
  </many-to-one>

lazy="false" fetch="join"替换成 fetch="select"也一样

查询时出现:org.hibernate.QueryException: query specified join fetching, but the owner of the fetched association was not present in the select list ;

将fetch去掉后 就好了,做关联查询,可以直接加子表条件。
分享到:
评论

相关推荐

    The user specified as a definer ('root'@'%') does not exist 解决方法

    mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法

    SSD7 选择题。Multiple-Choice

    (b) the name of the table, the names of the table's attributes, the data types of the table's attributes, the formats of the table's attributes, and the maximum number of rows that the table can have...

    微软内部资料-SQL性能优化5

    If even one column in the query is not part of the index, the data rows must be accessed. The leaf level of an index is the only level that contains every key value, or set of key values. For a ...

    The structure of decoupled non linear systems

    law permits an arbitrary assignment of a specified number of poles and is a generalization of the synthesis procedure of Falb and Wolovich (1967) for the non-linear time-variable case. In the ...

    Taking the Human Out of the Loop- A Review of Bayesian Optimization.pdf

    These parameters are often specified and hard-coded into the software by various developers or teams. If optimized jointly, these parameters can result in significant improvements. Bayesian ...

    Java自定义异常案例--ExceptionManager(java源码)

    * an exception wrapping the exist exception but requires a custom message. * * @param msg the detail message which is the part of the information will * be shown. * @param throwable...

    微软内部资料-SQL性能优化3

    In our example, if one transaction (T1) holds an exclusive lock at the table level, and another transaction (T2) holds an exclusive lock at the row level, each of the transactions believe they have ...

    Delete the specified folder

    Delete the folder under the specified path

    A DB2 SQL Query - how to get the RACF groups on specified tables

    A DB2 SQL Query - how to get the RACF groups on specified tables

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    connector's end point moving, the link is breaks if the move was not on one of the flex-controls connection points. Contain False as default. - ADD Added ControlDocRect parameter in event ...

    USENIX Association Proceedings of MobiSys 2003

    This paper presents the design and implementation of service-oriented network sockets (SoNS) for accessing services in a dynamically changing networked environment....satisfies the specified constraints.

    Change Color of Component in Specific Display State Example

    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 ...

    数位板压力测试

    The availability of drivers that support the features of the specification will simplify the process of developing Windows appli¬cation programs that in-corporate absolute coordinate input, and ...

    计算机网络第六版答案

    but the time when loss first occurs will be different from one experiment to the next due to the randomness in the emission process. 22. Five generic tasks are error control, flow control, ...

    Mysql:The user specified as a definer (‘xxx@’%’) does not exist的解决方案

    今天项目优化过程中,mysql有个问题The user specified as a definer (‘wx_root’@’%’) does not exist 查了一下,意思是执行sql无权限。 看了下数据库用户是quoters 而sql没有所属权。那就找原因了。发现sql执行...

    servlet2.4doc

    Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. doFilter(ServletRequest, ...

    2009 达内Unix学习笔记

    集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...

    Universal-USB-Installer

    In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other ...

    Java邮件开发Fundamentals of the JavaMail API

    Fundamentals of the JavaMail API Presented by developerWorks, your source for great tutorials ibm.com/developerWorks Table of Contents If you're viewing this document online, you can click ...

    WizFlow网页编辑

    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 ...

Global site tag (gtag.js) - Google Analytics