inverse=true in JPA annotations

前端 未结 3 515
执笔经年
执笔经年 2020-11-30 10:02

In my application I use JPA 2.0 with Hibernate as the persistence provider. I have a one-to-many relationship between two entities (using a @JoinColumn and not

3条回答
  •  有刺的猬
    2020-11-30 10:31

    I found an answer to this. The mappedBy attribute of @OneToMany annotation behaves the same as inverse = true in the xml file.

提交回复
热议问题