Java Mailing List Archive

Home » users.openjpa »

Persist detached entities into a memory database



Replies: Find Java Web Hosting

Author LoginPost Reply
Dear OpenJPA Users,

We face a particular use case: we want to persist some entities that were
previously detached into a virtual database (derby memory mode).
Unfortunately, if we try to persist these entities that already have Ids
annoted with @GeneratedValue[1], OpenJPA refuses to persist these (expected
default behaviour).

Is there a way in order to recreate a memory-based database with previously
detached entities ?

[1] We use a Timestamp generator for ID values.


Sent from the OpenJPA Users mailing list archive at
©2008 - Jax Systems, LLC, U.S.A.