Community
Participate
Working Groups
Currently any id that uses a sequence number default to not allowing zero. If you have a composite id that has one sequence, and one non-sequence, the non-sequence should allow zero, or at least be able to be configured independently to the sequence.
Fixed by adding a primaryKeyIdValidations to descriptor that allow id pk field to be configured to have a different validation. All default to the descriptor's IdValidation if set, otherwise project default, otherwise don't allow 0 unless composite, but sequence does allow 0.
Created attachment 172613 [details] patch
Patch also includes some memory test cases. Also enhances error message thrown when id is invalid.
Fixed in 2.2 (trunck) and 2.1.1 (2.1)
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink