jpa fetch join query

前端 未结 1 1838
隐瞒了意图╮
隐瞒了意图╮ 2021-01-14 22:59

This is how my domain looks:

public class Template implements Serializable {
    private static final long serialVersionUID = 1L;    
    @OneToOne(cascade=C         


        
相关标签:
1条回答
  • 2021-01-14 23:33

    You cannot use an alias on a join fetch in JPQL, this is disallowed by the spec.

    EclipseLink does allow nested join fetch through the query hint,

    "eclipselink.join-fetch"="t.fieldConfig.fieldSet"
    
    0 讨论(0)
提交回复
热议问题