Even for a simple direct fetching, if you have a JOINED inheritance, Hibernate will issue the JOIN when you fetch the parent entity. The only ways to deal with it are:
switch to SINGLE_TABLE
use native SQL
switch to SINGLE_TABLE
use native SQL
当使用Hibernate进行简单直接的获取操作时,如果存在JOINED继承关系,Hibernate会在获取父实体时发出JOIN指令。解决此问题的方法有两种:切换到SINGLE_TABLE策略或者使用原生SQL。
1182

被折叠的 条评论
为什么被折叠?



