spring - Hibernate causes problems when beans have cross refrence -
i have hibernate beans a, b , c. here relation between them:
- a contains object of b - many 1 - lazy fetching
- b contains object of c - many 1 - lazy fetching
- c contains object of sortedset - 1 many - lazy fetching
i trying objects in fashion a->getb()->getc()->getbs() , iterate on bs using loop. after iterating when call hibernatebeanreplicator.deepcopy() on a->getb(), fails fill object graph , many of fields of b remain null.
however if change relation a->getc()->getbs(), hibernatebeanreplicator works fine. although current app design not allow me change them this.
thanks ton. suman
Comments
Post a Comment