【发布时间】:2016-06-13 13:00:47
【问题描述】:
我有一个带有 Criteria 的 Hibernate 查询。
我想做的是(仅针对一个查询)告诉 hibernate 忽略现有的 @ManyToOne 注释。
那是因为 hibernate 在其他表上创建和左连接。 我可以弄清楚该怎么做。
我发现这 2 个链接没有解决我的问题:
Hibernate: How to remove an entity to which none refers to anymore in ManyToOne?
【问题讨论】:
标签: java hibernate criteria hibernate-criteria many-to-one