i know this question might be asked before, but i want to make it specific,
am using hibernate without annotations, so my case is if I’ve the following relation:
A has many of B and B has one of A, it’s a one to many relation from A side, am dealing with A entity which contain set of B, then when Creating, Updating Bs in runtime using A, then saving or updating A using hibernate, i want it also to save or update B i.e cascade save delete but from the side of A (one to many), i think it’s allowed from B (many to one) side only
Regads,
I’m not sure I understood the question but it’s definitely possible to define operations to cascade for a one-to-many association (see the section 6.2. Collection mappings). Below, an extract from the Chapter 21. Example: Parent/Child:
References