Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326317 - JPA2: Metamodel reserved PK should also set attribute name to aide triage of 300051 like validation issues
Summary: JPA2: Metamodel reserved PK should also set attribute name to aide triage of ...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/D...
Whiteboard:
Keywords:
Depends on:
Blocks: 266912 300051
  Show dependency tree
 
Reported: 2010-09-27 11:06 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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