关联时的JPA 2.0 / Hibernate自定义连接子句

时间:2011-04-28 07:39:47

标签: hibernate jpa join where-clause

我想将使用hibernate或JPA 2.0注释的2个实体与自定义连接子句相关联。该条款不是通常的FK / PK平等。在SQL中,这将是这样的:

join b on a.id = 1000 * b.a_id

是否可以注释这样的自定义连接where子句并忽略默认值

join b on a.id = b.a_id

1 个答案:

答案 0 :(得分:0)