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.
答案 0 :(得分:0)
对于这个问题,并没有解决所有问题,但是rev eng文件允许您为特定属性指定级联(同时允许生成其他属性),这可能是最安全的选项。