I have a problem that's equal to the one presented here:
http://stackoverflow.com/questions/1715 ... -hibernateAfter searching for a while I can't find a decent solution for this. I can't have the parent entity have an @OneToMany to the child, because they are at different modules. I wanted to try the EntityListener that would delete the children before the parent is, but I can't because, again, they are at different modules.
Is there a clean solution to this? Can I define an EntityListener in the other module?