Hibernate: Used mappedBy on class that extends another class annotated as JoinedSubclass?

后端 未结 3 1553
迷失自我
迷失自我 2021-02-19 09:46

The following doesn\'t work:

@Entity
class Owner {

  @OneToMany(mappedBy=\"owner\", cascade = {CascadeType.ALL})
  protected Set getBSet() {
    ..
  }         


        
3条回答
  •  孤独总比滥情好
    2021-02-19 10:16

    It's a Hibernate oddity, but it's deliberate. I have a blog post up with background information, links and a workaround for the JOINED solution.

提交回复
热议问题