Re: Synchronizing two databases with the same model

2008-05-19 Thread Pinaki Poddar
stence.xml persistence.xml http://www.nabble.com/file/p17330349/TestMigration.java TestMigration.java http://www.nabble.com/file/p17330349/PObject.java PObject.java Note that this is a quick prototype and whoever plans to play with it should be ready for exception stack traces. -- View this

RE: Synchronizing two databases with the same model

2008-05-07 Thread Brill Pappin
ubject: Re: Synchronizing two databases with the same model Hi, > The most obvious approach would be: fetch objects from datastore A > (and possibly detach the objects) and then merge them in database B. > But this rises a couple of problems due to versioning / sequence > generator

Re: Synchronizing two databases with the same model

2008-05-07 Thread Pinaki Poddar
to 'target' database. >> >> >> Now OpenJPA Slice module already has some support to handle multiple >> databases in a same persistence context. I tweaked Slice a bit to get the >> 'migration' feature as described above. >> >> If you are interested to explore this further, let me know. >> >> >> > > > -- View this message in context: http://www.nabble.com/Synchronizing-two-databases-with-the-same-model-tp16989856p17116073.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Synchronizing two databases with the same model

2008-05-07 Thread Jonas Petersen
Hi Pinaki, thank you, this sounds interesting. The Slice Plig-In looks quite promising, I'm definitely interested in learning more about this. Jonas Pinaki Poddar schrieb: Hi, The most obvious approach would be: fetch objects from datastore A (and possibly detach the objects) and then me

Re: Synchronizing two databases with the same model

2008-05-07 Thread Pinaki Poddar
e support to handle multiple databases in a same persistence context. I tweaked Slice a bit to get the 'migration' feature as described above. If you are interested to explore this further, let me know. -- View this message in context: http://www.nabble.com/Synchronizing-two-databases-with-the-same-model-tp16989856p17112416.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Synchronizing two databases with the same model

2008-05-06 Thread Jonas Petersen
Hi Michael, thank you for the response! I'm afraid that this won't help much. It's about notification. If I get notified I still have to synchronize. Further it "allows a subset of the information available through OpenJPA's transaction events to be broadcast to remote listeners". And "...th

RE: Synchronizing two databases with the same model

2008-05-06 Thread Michael Vorburger
: jeudi, 1. mai 2008 18:44 To: users@openjpa.apache.org Subject: Re: Synchronizing two databases with the same model Jonas, I'm glad you asked this question as I'd also been thinking about how I might get around restrictions the @GeneratedValue annotation enforces within OpenJPA. In cer

Re: Synchronizing two databases with the same model

2008-05-05 Thread Ognjen Blagojevic
replication of one sort or another)? - Brill Pappin -Original Message- From: Jonas Petersen [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 3:25 PM To: users@openjpa.apache.org Subject: Synchronizing two databases with the same model Hi there! We have one data mode

Re: Synchronizing two databases with the same model

2008-05-01 Thread Andy Schlaikjer
30, 2008 3:25 PM To: users@openjpa.apache.org Subject: Synchronizing two databases with the same model Hi there! We have one data model and we need two datastores with that same data model. Datastore A for editing and previewing and datastore B for production (live). Now we need to synchronize parts of

Re: Synchronizing two databases with the same model

2008-04-30 Thread Jonas Petersen
TED] Sent: Wednesday, April 30, 2008 3:25 PM To: users@openjpa.apache.org Subject: Synchronizing two databases with the same model Hi there! We have one data model and we need two datastores with that same data model. Datastore A for editing and previewing and datastore B for production (live). Now

RE: Synchronizing two databases with the same model

2008-04-30 Thread Brill Pappin
rom: Jonas Petersen [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 3:25 PM To: users@openjpa.apache.org Subject: Synchronizing two databases with the same model Hi there! We have one data model and we need two datastores with that same data model. Datastore A for editing and prev

Synchronizing two databases with the same model

2008-04-30 Thread Jonas Petersen
Hi there! We have one data model and we need two datastores with that same data model. Datastore A for editing and previewing and datastore B for production (live). Now we need to synchronize parts of datastore A to datastore B. The most obvious approach would be: fetch objects from datastor