Community
Participate
Working Groups
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
>See ehr bug # 325992 that will add attibute and class data for metadata exceptions
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink