Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360725 - [Multi-Tenancy] Invalid validation message against mapped superclass
Summary: [Multi-Tenancy] Invalid validation message against mapped superclass
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard: EclipseLink
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 16:09 EDT by Nan Li CLA
Modified: 2011-10-12 16:48 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 Nan Li CLA 2011-10-12 16:09:10 EDT
Build Identifier: M20110909-1335

Create a class hierarchy with the top a mapped superclass. When applying multi-tenancy annotations to the mapped superclass, the warning message - Multitenant metadata cannot be specified on non-root entities in a SINGLE_TABLE or JOINED inheritance hierarchy - is given which is incorrect. We should be able to apply multi-tenancy annotations to a mapped superclass. The use case likes 

@MappedSuperclass
@Multitenant(MultitenantType.SINGLE_TABLE)
@TenantDiscriminatorColumn(name="FOO_ID")
public class SuperFoo implements Serializable {
    ...
}

@Entity
public class Foo extends SuperFoo implements Serializable {
    ...
}

Reproducible: Always
Comment 1 Karen Butzke CLA 2011-10-12 16:48:41 EDT
fixed for M3