Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Table generated identifiers (JPA spec. question)

I don't believe that the specification specifies when values should be generated.

EclipseLink only generates a PK when the Entity does not have a pre-existing PK.  When using a non primitive type, we treat NULL as an unassigned PK.  When using a Primitive, we (by default) use 0.



On 20/09/2012 12:25 PM, Laird Nelson wrote:
On Thu, Sep 20, 2012 at 9:15 AM, Laird Nelson <ljnelson@xxxxxxxxx> wrote:
I could not find a section in the JPA specification that indicates what the proper behavior is here.

This bug seems to be related: https://bugs.eclipse.org/bugs/show_bug.cgi?id=277804  It is however old and refers to what I suspect is an old property that has been superseded by eclipselink.id-validation.

Best,
_______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-users

Back to the top