Community
Participate
Working Groups
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
fixed for M3