假设我有一个名为 的表,employee
其字段为employee_id
,name
和supervisor_id
,
employee_supervisor
字段为supervisor_id
和name
。employee
和employee_supervisor
表相对于列存在外键关系supervisor_id
。
如果我在类中进行多对一注释映射Employee
,如何确保 Hibernate 使用 LEFT OUTER JOIN 来连接关联实体?
hibernate ×1