Hibernate version:
3.05
I am trying to implement replication using two sessionfactory objects and I can easily move data in a single table, etc. using code similar to the reference manual.
However, my actual database is a series of seven entities that are related by sequential one to many relationships. For example, a clinical trial network contains clinical sites contain different studies contain specific patients contain data.
I would envision loading one network from database A with sessionA, detaching it by closing sessionA, and then open sessionB and replicate the network. But since lazy loading is anticipated, I am expecting to get a Hibernate exception since the object is detached from sessionA.
Is there a solution to this situation?
Thank you.
_________________ J. Michael Dean, MD
|