Hibernate version: 3.1
Name and version of the database you are using:PostgreSQL 7.4
my senario is
classA <1----*> classB<1----*>classC ..... till classX (all have 1--* relation)
if i go for a code like this for persisting the entire association
like
Code:
ClassA classA = new ClassA();
....
....
classA.setClassB(classB);
classB.setClassC(classC);
....
...
(classX-1).setClassX(classX);
session.save(classA);
assuming i've give cascade="save-update" in all association mapping .
1) upto which level i can make use of cascading . here i am saving only classA object , which results in cascaded save of the associations
2) same question i have , in loading of classA and traversing the chain .
say, i load classA first.
i need to call classA.getClassB().getClassC().......
is there a limit to this level
i dont know if such situations occur in real time . but confused about the matter
[/code]