I have a complex hibernate mapping which maps objects with circular relations between objects and many cascading relation.
An XML parsing is done to build the objects intantiations in memory. When this parsing is successfull, I ask to hibernate to store the root object which stores in cascade all other dependent objects.
When storing objects in database, the java.lang.StackOverflowError is thrown.
Is the huge amount of objects can be the cause of the error ? Or is it the huge amount of relations between objects ? Or something else ?
|