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

Bug 325467

Summary: JPA2: Metamodel Identifiable Types must handle a (non-identifiable) Embeddable subclass of an (identifiable) MappedSuperclass
Product: z_Archived Reporter: Michael OBrien <michael.f.obrien>
Component: EclipselinkAssignee: Project Inbox <eclipselink.orm-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipselink.orm-inbox
Version: unspecifiedFlags: michael.f.obrien: documentation+
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
URL: http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/metamodel_api#Types_Hierarchy
Whiteboard:
Bug Depends on: 266912, 283028, 316991    
Bug Blocks:    

Description Michael OBrien CLA 2010-09-16 09:52:22 EDT
Since there is new functionality where @Embeddable extends @MappedSuperclass in bug # 283028 we need to see how this affects IdentifiableType (which does not include Embeddables)
Specifically that the MappedSuperclass accessors are now stored on the Project by the higher ClassAccessor instead of the EntityAccessor and movement of MS discovery to the EmbeddableAccessor
>see the relationship between the types in
http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/metamodel_api#Types_Hierarchy

>Add metamodel test model coverage for @Embeddable extending @MappedSuperclass
>Note that @Id support is not extended to Embeddables so the fact it extends an IdentifiableType may be a non issue - we will know during testing
>Verify support for and extend the metamodel test model
- EmbeddableTypeImpl changes
- (non-Id) Embeddable key type in Maps (MapAttributeImpl constructor) (where a MS is at the root)
- verify that we can keep EmbeddableTypes as only Managed and not Identifiable


>We need some scenarios like the following with varying @Id positioning that will not flow through to the Embeddable

MS <-- MS <-- Emb
MS <-- Emb <-- ?
MS <-- Emb
Comment 1 Michael OBrien CLA 2010-09-16 10:02:57 EDT
>See also Embeddables extending Entities by way of a MappedSuperclass(s) in the middle
http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/metamodel_api#Missing_Test_Model_Attributes
E <-- MS <-- MS <-- Emb
E <-- MS <-- Emb
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:02:55 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:09:07 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink