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 persistence framework that was able to retry the insert statement with a "second-try generated PK" just for the case the currently generated one has already been inserted by another process. does nobody else have a similar requirement? hans > -----Ursprüngliche Nachricht----- > Von: Abe White [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 13. Februar 2007 17:35 > An: open-jpa-dev@incubator.apache.org > Betreff: Re: AW: Using @GeneratedValue for IDs on already existing tables > > > does openJPA provide the strategy to re-generate another value for > > the PK > > or do we have to manually deal with this case? > > http://incubator.apache.org/openjpa/docs/latest/manual/ > manual.html#ref_guide_sequence > _______________________________________________________________________ > Notice: This email message, together with any attachments, may contain > information of BEA Systems, Inc., its subsidiaries and affiliated > entities, that may be confidential, proprietary, copyrighted and/or > legally privileged, and is intended solely for the use of the individual > or entity named in this message. If you are not the intended recipient, > and have received this message in error, please immediately return this > by email and then delete it.