openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Luis Cetina <maxtorz...@gmail.com>
Subject Re: Persist detached entities into a memory database
Date Wed, 15 May 2013 17:23:43 GMT
Why you dont use merge?


2013/5/15 Guillaume Chauvet <guillaume.chauvet@qualiformed.com>

> 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.
>
> Regards,
> Guillaume
>
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Persist-detached-entities-into-a-memory-database-tp7583921.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message