Hello all. I'm having a little trouble, and I can't seem to find any info on what I need. Hopefully someone here can set me straight.
I have three classes:
ClassA
Set classB;
ClassB
ClassA classA
ClassC classC
ClassC
Set classB
If I am using a basic DAO as shown in the documentation, can I not simply pass an instance of ClassA to the save method to save the entire object graph? I have no problems saving any one of the individual instances. But when I try to save the graph, I get an exception about a non-persistent instance of classB.
I'd appreciate any help.
Thanks!


Reply With Quote