|
| Re: Transfer entities between entitymanagers [message #666664 is a reply to message #666327] |
Thu, 21 April 2011 09:41  |
James Sutherland Messages: 1834 Registered: July 2009 |
Senior Member |
|
|
If it is a small database, you could just read everything from one persistence unit mapped to the one db, and write to the other.
One issue would be Id generation, if you are generating the Ids, you must ensure the Id generators are updated to the last used Id.
If your database is very big, then you may wish to use more direct means, such as import/export tools, or direct migration scripts.
James : Wiki : Book : Blog
|
|
|
Powered by
FUDForum. Page generated in 0.01481 seconds