1

I'm using the Hibernate Reverse Engineering to generate annotated entities and a cfg.xml for a very large non static set of database tables. Is it possible to tell the reverse engineering tool to set cascade all for all oneToOne and oneToMany associations.

I know this is a bit voodoo to automatically set CascadeType, but if it can be done safely, it would save make things very smooth in keeping two systems running during a gradual migration.

1
  • Anyone have thoughts on this?
    – nilacqua
    Mar 7, 2016 at 18:34

1 Answer 1

0

There isn't a cure all for this one, but the rev eng file lets you specify cascade for particular properties(while letting other attributes be generated), which is probably the safest option.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.