Community
Participate
Working Groups
In the setPKField method on MappingsGenerator, the property's schemaName is used to construct the primary key field name. In the case of an XmlID set on a property that also has an XmlPath, the XmlPath value should be used as the primary key field name. Since the descriptor and mappings have been setup at this point, we should leverage the work done when constructing the mappings when setting the pk field name.
Created attachment 177991 [details] Proposed fix
Created attachment 177992 [details] Supporting test case
Created attachment 177998 [details] Proposed fix v2 Put constants for "@" and "/text()" back and made use of them where appropriate.
Fix for Bug 324097 - JAXB: XmlPath is not being used when setting primary key for XmlID Reviewed by: blaise.doughan@oracle.com Tests: all unit tests pass as expected; jaxb/externalizedmetadata/xmlidref/XmlIdRefTestCases
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink