|Cascade type ALL not propagating [message #509438]
||Fri, 22 January 2010 13:01
| Carlos Conti
Registered: January 2010
I have three classes A,B,C, with attached OneToMany relationships from A to B and OneToOne from B to C
A < B : bidirectional
B->C : unidirectional (from B to C)
Have settled Cascade types for all of them to ALL
My problem is that when calling persist(Object) on A, stores only A in the database, whereas when calling persist on object of type B, writes all of them (A,B and C)
Since I have set Cascading to ALL for all of them, how is it possible that calling persist on A, doesn't store all the objects?
Thanks in advance.
Powered by FUDForum
. Page generated in 0.02255 seconds