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

    Hibernate Reverse Engineering add orphanRemoval to OneToMany

    Katharina Ferstl Newbie



      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!