Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Transfer entities between entitymanagers
Transfer entities between entitymanagers [message #666327] Tue, 19 April 2011 18:01 Go to next message
Eclipse UserFriend
Hi,

in a currently running project we want to change your database product.

How could we transfer all data from database A to database B?

What problems could we meet?
Re: Transfer entities between entitymanagers [message #666664 is a reply to message #666327] Thu, 21 April 2011 09:41 Go to previous message
Eclipse UserFriend
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.
Previous Topic:IndirectSet triggers raiseAddChangeEvent even when no element was added
Next Topic:JPA query with hierarchy
Goto Forum:
  


Current Time: Tue Jul 22 18:35:18 EDT 2025

Powered by FUDForum. Page generated in 0.03055 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top