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

Bug 326317

Summary: JPA2: Metamodel reserved PK should also set attribute name to aide triage of 300051 like validation issues
Product: z_Archived Reporter: Michael OBrien <michael.f.obrien>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipselink.orm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
URL: http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/metamodel_api#DI_100:_20100120:_EmbeddedId_on_MappedSuperclass_fails_metadata_validation_on_reserved_temp_metamodel_PK
Whiteboard:
Bug Depends on:    
Bug Blocks: 266912, 300051    

Description Michael OBrien CLA 2010-09-27 11:06:11 EDT
JPA2: Metamodel reserved PK should also set attribute name to aide triage of 300051 like validation issues

>When a user gets a validation error on attributes that may be for metamodel only processing
>like attributes on MappedSuperclasses.
>We should printo out a descriptive attribute name that will alert to the fact that this is an internal processing issue (an attribute that only we process)

>see "on attribute []"
Caused by: Exception [EclipseLink-7163] (Eclipse Persistence Services -
2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Entity class [class bsbs.MSC3] has both an @EmbdeddedId
(on attribute [id]) and an @Id (on attribute []. Both ID types cannot be
specified on the same entity.

>should be something like "on attribute [__PK_METAMODEL_RESERVED_IN_MEM_ONLY_FIELD_NAME_INTERNAL_METADATA_PROCESSING_ONLY]
That lets the log know we are processing
    public static final String MAPPED_SUPERCLASS_RESERVED_PK_NAME = "__PK_METAMODEL_RESERVED_IN_MEM_ONLY_FIELD_NAM
Comment 1 Michael OBrien CLA 2010-10-01 20:06:39 EDT
>See ehr bug # 325992 that will add attibute and class data for metadata exceptions
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:23:43 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink