Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Invalid
-
Affects Version/s: 1.0.0BETA2
-
Fix Version/s: 1.0.0BETA2
-
Component/s: None
-
Labels:None
Description
I have the following classes :
@MappedSuperClass
@InheritanceType("SINGLE_COLLECTION")
@DiscriminatorField(fieldName="_class")
@DiscriminatorMap(
)
abstract class SuperClass {}
@Document
class SubClass1 extends SuperClass {}
@MappedSuperClass
abstract class SuperClass2 extends SuperClass {}
@Document
abstract class SubClass2 extends SuperClass2 {}
SubClass2 does not use the single collection.
SubClass1 and SubClass2 do not use the discriminator map.
This broke after commit 2e8071a4dc68b027f969.
Why can't we use MappedSuperclasses in an single collection inheritance strategy ?
Dropped MappedSuperClasses and switched to Document classes.
I'm not very happy to have abstract classes configured as Document, but it works.