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

Bug 352676

Summary: TenantDiscriminatorColumn annotation does not match eclipselink-orm.xml schema
Product: z_Archived Reporter: Karen Butzke <karenfbutzke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: eclipselink.orm-inbox, guy.pelletier
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed changes none

Description Karen Butzke CLA 2011-07-20 16:31:44 EDT
The new multi-tenancy support has mismatched annotations and xml. In java there is a @TenantDiscriminatorColumn with a name and contextProperty while in the eclipselink_orm_2_3.xsd there is a tenant-discriminator (instead of tenant-discriminator-column) complex type with a name and column-name(instead of context-property)
Comment 1 Guy Pelletier CLA 2011-07-22 09:23:48 EDT
Not sure how this happened but is definitely not correct.
Comment 2 Guy Pelletier CLA 2011-07-22 13:12:32 EDT
Created attachment 200217 [details]
Proposed changes
Comment 3 Guy Pelletier CLA 2011-07-22 14:34:48 EDT
Changes have been submitted.

Verified by: Tom Ware

Tests: Extended model using multitenant run with schema validation on. The mapping file was defined with the correct tenant discriminator elements. Meaning with validation on we get validation errors. With the correct schema, the validation errors go away. Internally, the tenant metadata was mapped using the correct elements as well, so again .. not sure how this invalid schema made it through development.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:36:02 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink