Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352676 - TenantDiscriminatorColumn annotation does not match eclipselink-orm.xml schema
Summary: TenantDiscriminatorColumn annotation does not match eclipselink-orm.xml schema
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-20 16:31 EDT by Karen Butzke CLA
Modified: 2022-06-09 10:36 EDT (History)
2 users (show)

See Also:


Attachments
Proposed changes (9.75 KB, patch)
2011-07-22 13:12 EDT, Guy Pelletier CLA
no flags Details | Diff

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