Community
Participate
Working Groups
If Employee has a composite mapping to Address, which is marked transient, the following integrity exception is thrown: Caused by: Exception [EclipseLink-0] (Eclipse Persistence Services - @VERSION@.@QUALIFIER@): org.eclipse.persistence.exceptions.IntegrityException Descriptor Exceptions: --------------------------------------------------------- Exception [EclipseLink-110] (Eclipse Persistence Services - @VERSION@.@QUALIFIER@): org.eclipse.persistence.exceptions.DescriptorException Exception Description: Descriptor is missing for class [org.example.Address]. Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[address] Descriptor: XMLDescriptor(org.example.Employee --> [DatabaseTable(employee)]) We should detect this earlier (during Xml/Annotations processing or mappings generation) and throw a detailed exception.
Created attachment 179402 [details] Proposed fix.
Created attachment 179403 [details] Supporting test cases
Reviewed by: matt.macivor@oracle.com Tests: jaxb/externalizedmetadata/xmltransient/XmlTransientTestCases; all unit tests pass as expected Revision: 8232
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink