Hibernate version: 3
Hello,
i tried hibernate and i am very impressed. Nice work.
But during my tests i had one problem.
I have a complex structure of an object which have several (joined-)subclasses and many assoziations.
When i create such an object an i want to save it, then i call
Code:
session.save(myObject);
But the assoziations arn't saved automatically.
I have to save them manually by calling the save-Method fpr each assoziation.
Code:
session.save(myObject);
session.save(myObject.getAssoziation1();
session.save(myObject.getAssoziation2();
Is there a nicer way to do this?
Can Hibernate save the Assoziations by itself?
Sorry, i this topic is discussed elsewhere, but i didn't find it.