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 88BB8DE97 for ; Wed, 15 May 2013 16:51:50 +0000 (UTC) Received: (qmail 27610 invoked by uid 500); 15 May 2013 16:51:50 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 27581 invoked by uid 500); 15 May 2013 16:51:50 -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 27573 invoked by uid 99); 15 May 2013 16:51:50 -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 16:51:50 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 16:51:44 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Uceut-0000OA-UM for users@openjpa.apache.org; Wed, 15 May 2013 09:51:03 -0700 Date: Wed, 15 May 2013 09:51:03 -0700 (PDT) From: Guillaume Chauvet To: users@openjpa.apache.org Message-ID: <1368636663892-7583921.post@n2.nabble.com> Subject: Persist detached entities into a memory database MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.