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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -