From open-jpa-dev-return-2052-apmail-incubator-open-jpa-dev-archive=incubator.apache.org@incubator.apache.org Sat Feb 10 17:24:22 2007 Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 84703 invoked from network); 10 Feb 2007 17:24:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2007 17:24:21 -0000 Received: (qmail 17522 invoked by uid 500); 10 Feb 2007 17:24:28 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 17491 invoked by uid 500); 10 Feb 2007 17:24:28 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 17481 invoked by uid 99); 10 Feb 2007 17:24:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Feb 2007 09:24:28 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of hans.prueller@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 10 Feb 2007 09:24:19 -0800 Received: (qmail invoked by alias); 10 Feb 2007 17:23:58 -0000 X-Provags-ID: V01U2FsdGVkX19jERUz5bVjIU1IoElQfh1G5rFhPcGq9ERyxVU9Iv w6kA== From: "Hans J. Prueller" To: Subject: Using @GeneratedValue for IDs on already existing tables Date: Sat, 10 Feb 2007 18:23:51 +0100 Message-ID: <000001c74d38$3be9bdb0$0600a8c0@burns> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C74D40.9DAE25B0" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcdNODt8RyehsI5WSPKlKkj9Csw+TQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0001_01C74D40.9DAE25B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit As some of you may remember, I am using OpenJPA within an "old" Java2EE 1.4/EJB2.1 container to perform a step-by-step or bean-by-bean migration from our EJB2.1 CMP entity beans to new EJB3 Beans with JPA. For the IDs of the Entity Beans we have been using a Container-Generated-Value and I plan to continue doing so by using the JPA's @GeneratedValue stuff. Are there any special issues to consider when using the new openJPA based entities with generated values on already existing data? In special I mean conflicts of between openJPA generated IDs with existing IDs in the underlying table? Hans ------=_NextPart_000_0001_01C74D40.9DAE25B0--