openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans J. Prueller" <>
Subject WG: Using @GeneratedValue for IDs on already existing tables
Date Mon, 12 Feb 2007 17:04:56 GMT

-----Urspr√ľngliche Nachricht-----
Von: Hans J. Prueller [] 
Gesendet: Samstag, 10. Februar 2007 18:24
Betreff: Using @GeneratedValue for IDs on already existing tables

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? 



View raw message