openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans J. Prueller" <>
Subject AW: AW: Using @GeneratedValue for IDs on already existing tables
Date Tue, 13 Feb 2007 17:00:35 GMT
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?


> -----Urspr√ľngliche Nachricht-----
> Von: Abe White []
> Gesendet: Dienstag, 13. Februar 2007 17:35
> An:
> 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?
> 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.

View raw message