Ok, let me try this again. First of all, I was mistaken when I said add "inverse=true" to the many-to-one - I should have said to put "inverse=true" on the one-to-many.
I _think_ you use use inverse whenever you have a bidirectional association, as you do here. Then the relationship is only saved to the database when processing the non-inverse side of the relationship.
Still, this doesn't answer your original question. So, I would suggest setting inverse=true on both one-to-many's, and calling both
detalleAsiento.setAsiento(asiento)
and
distribucionDetalleAsiento.setDetalleAsiento(detalleAsiento)
I'm not sure why you observed it cascading the first relationship but not the second. Let me know if this works....
|