JPA/Hibernate Join On Constant Value

后端 未结 3 1414
逝去的感伤
逝去的感伤 2021-01-02 05:09

I am trying to join to different entities from the same table using a constant value in the join statement. In SQL, I would do something like this...

SELECT         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-02 06:00

    You're looking at non-standard joins. Here's the documentation for treating such a case:

    http://docs.oracle.com/cd/E13189_01/kodo/docs40/full/html/ref_guide_mapping_notes_nonstdjoins.html

    Hope it helps!

提交回复
热议问题