I am generating entities for our large database via hibernate reverse engineering. I was hoping to see cascade annotations in entities, but did not see them on generation.
Is there a way to direct hibernate to consider foreign keys and generate entities with cascade annotations, so that when i delete a parent all associated entities get automatically deleted.
Basically, I do not want to delete all associated entities & their associations one by one as its a very cumbersome task ; can hibernate reverse engineering help here?
|