Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4BDC2D0FE for ; Wed, 15 May 2013 17:24:10 +0000 (UTC) Received: (qmail 65092 invoked by uid 500); 15 May 2013 17:24:10 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 65037 invoked by uid 500); 15 May 2013 17:24:10 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 65029 invoked by uid 99); 15 May 2013 17:24:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 17:24:10 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of maxtorzito@gmail.com designates 209.85.217.181 as permitted sender) Received: from [209.85.217.181] (HELO mail-lb0-f181.google.com) (209.85.217.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 17:24:04 +0000 Received: by mail-lb0-f181.google.com with SMTP id w20so1775825lbh.12 for ; Wed, 15 May 2013 10:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=LCQu1xgEtSQq/n23ySxmIBcy0ytoL4TRJcTZpgGJ/Kg=; b=a05zP2XJFFa6tPPmE+cFQ5scOVSOKQsDvPeDuiUksXSY5hT6GIOeaD0Ggh/GKtCJT/ UJRcHU90JsOmNinAYDyP0fN7MqUUZu5uV+jFqAxc/EqaCQOvgPgXJrZDyEtC5URXSFux PGR+SXg3x5gaNqzFj2SDEmXhuPfL7u1zalLFRlRJ437mvJthgFitbKddc3Ylu1LnO3jI WnOup8TYqTafalusukCTPueL5BjtzK/GjwBVHN/qM83HrKOOgScmNmeDW91tDP6DpF64 753UA5hziMqeRNYTI+teDorh1RgkYYCClyT1nxqPnDmymMfnqpLa0QXeg9h9lb09ayUQ fLzQ== MIME-Version: 1.0 X-Received: by 10.112.138.228 with SMTP id qt4mr17452602lbb.106.1368638623963; Wed, 15 May 2013 10:23:43 -0700 (PDT) Received: by 10.112.80.38 with HTTP; Wed, 15 May 2013 10:23:43 -0700 (PDT) In-Reply-To: <1368636663892-7583921.post@n2.nabble.com> References: <1368636663892-7583921.post@n2.nabble.com> Date: Wed, 15 May 2013 12:23:43 -0500 Message-ID: Subject: Re: Persist detached entities into a memory database From: =?ISO-8859-1?Q?Jos=E9_Luis_Cetina?= To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=089e0112bfd001df6f04dcc503c5 X-Virus-Checked: Checked by ClamAV on apache.org --089e0112bfd001df6f04dcc503c5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Why you dont use merge? 2013/5/15 Guillaume Chauvet > 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 (expect= ed > default behaviour). > > Is there a way in order to recreate a memory-based database with previous= ly > 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-memo= ry-database-tp7583921.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. > --=20 ------------------------------------------------------------------- *SCJA. Jos=E9 Luis Cetina* ------------------------------------------------------------------- --089e0112bfd001df6f04dcc503c5--