Re: AW: AW: AW: AW: Using @GeneratedValue for IDs on already existing tables

2007-02-14 Thread Dain Sundstrom
On Feb 13, 2007, at 2:38 PM, Hans J. Prueller wrote: Don't be afraid - it is definitely NOT JBOSS ;-) Isn't it hibernate behind the scenes of the JBoss CMP engine? Last time I checked they were still using my ancient cruft :) I have been using hibernate for several years now and I'm pretty

AW: AW: AW: AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Hans J. Prueller
A/Geronimo will be a good bet for the future ;-) regards, Hans > -Ursprüngliche Nachricht- > Von: Dain Sundstrom [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 13. Februar 2007 20:11 > An: open-jpa-dev@incubator.apache.org > Betreff: Re: AW: AW: AW: Using @GeneratedValue f

Re: AW: AW: AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Dain Sundstrom
On Feb 13, 2007, at 10:06 AM, Hans J. Prueller wrote: Can you tell us your current J2EE vendor, and if possible the generation strategy selected in the vendor deployment descriptor. If not, can you grab the last 20 pks from one of the tables, we may be able to guess the strategy One of

AW: AW: AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Hans J. Prueller
ans > -Ursprüngliche Nachricht- > Von: Dain Sundstrom [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 13. Februar 2007 18:36 > An: open-jpa-dev@incubator.apache.org > Betreff: Re: AW: AW: Using @GeneratedValue for IDs on already existing > tables > > Can you tell us you

AW: AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Hans J. Prueller
, please immediately return this > by email and then delete it. > > > -----Original Message- > > From: Hans J. Prueller [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 13, 2007 9:01 AM > > To: open-jpa-dev@incubator.apache.org > > Subject: AW: AW: U

Re: AW: AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Dain Sundstrom
Can you tell us your current J2EE vendor, and if possible the generation strategy selected in the vendor deployment descriptor. If not, can you grab the last 20 pks from one of the tables, we may be able to guess the strategy. In general, if you vendor is using a UUID, you should able to u

AW: AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Hans J. Prueller
thanks for this link but this section only describes the different algorithms that are provided to get the generated value - it does not mention the case what happens if we try to save a new persistent entity with a generated PK value that already exists in the DB? I can remember a legacy persiste