I have two session objects, each for separate datasource (separate database). Those two databases hava the same schemas. All I want to do is to retrive the same object from one database and persist in another database as a new object.
What should I do after I receive that object from first database. Setting object id to null is enough before making it persist in another database?
I hava also checked that I have to close first session before use the same object within another session, but I don't wont? How to resolve that?
|