Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在使用 Hibernate 时遇到了问题。表A一对一表B和表A一对一表C。现在我用get(A.class, id)方法,但是Hibernate生成了两条sql:第一个a join b,第二个是"select c" 在a和c中使用属性c时, fetch="join" 失败,谁能帮我找出原因?</p>
from Cat as cat inner join cat.mate as mate left outer join cat.kittens as kitten
更多示例在这里