0 Replies Latest reply on Apr 1, 2016 5:02 AM by katieff

    Hibernate Reverse Engineering add orphanRemoval to OneToMany

    katieff

      Hi,

       

      I like to generate following annotation:

       

      @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "residualValueMatrix", orphanRemoval = true)

       

      How can I add the orphanRemoval = true ?

      I set the Cascade.ALL by using the foreign key property in the hibernate.reveng.xml .

       

      Thank you!

      Katharina