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
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
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.
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
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.
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
: 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
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
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
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
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
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
12 matches
Mail list logo