Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347179

Summary: [EclipseLink] [Validation] ID mapping in embeddable validation not appearing in EclipseLink platform
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: JPAAssignee: Nan Li <nan.n.li>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: unspecified   
Target Milestone: 3.4 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nan Li CLA 2011-05-25 11:27:43 EDT
Build Identifier: I20110519-1138

Based on the spec. and EclipseLink wiki, the Embeddable annotation/element is used to specify a class whose instances are stored as an intrinsic part of an owning entity and share the identity of the entity and each of the persistent properties or fields of the embedded object is mapped to the database table for the entity; therefore, an embeddable should not have its own identity meaning id mapping should not be used for an embeddable. Currently, there's no error reported if defining id mapping for embeddables with EclipseLink platform.

Reproducible: Always
Comment 1 Neil Hauge CLA 2011-05-31 14:49:10 EDT
To clarify, this validation exists for Generic platform but isn't appearing for the EclipseLink platform.
Comment 2 Neil Hauge CLA 2011-07-01 16:24:27 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 3 Nan Li CLA 2013-09-12 16:46:15 EDT
tests run and patch committed to the master branch