Constraint violation in Hibernate unidirectional OneToMany mapping with JoinTable and OrderColumn when removing elements

后端 未结 4 1246
小鲜肉
小鲜肉 2020-12-28 17:26

I have a problem when removing elements from a list mapped as described above. Here is the mapping:

@Entity
@Table( name = \"foo\")
class Foo {

    private List          


        
4条回答
  •  执笔经年
    2020-12-28 17:36

    I guess what you need is correct inverse mapping.
    http://docs.jboss.org/hibernate/core/3.3/reference/en/html/tutorial.html#tutorial-associations-bidirectional

提交回复
热议问题