Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.0.0BETA1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:CentOS 5.5, PHP 5.3
Description
I am not sure if it's supposed to be that @MappedSuperclass document can define @ChangeTrackingPolicy for multiple documents but in fact it does not work.
In other words in the case below:
===================================================
/**
- @MappedSuperclass
- @InheritanceType("COLLECTION_PER_CLASS")
- @ChangeTrackingPolicy("DEFERRED_EXPLICIT")
*/
abstract class MappedDocument
{
}
/**
- @Document(collection="chart")
*/
class Chart extends MappedDocument
{
}
===================================================
class Chart
- has InheritanceType = INHERITANCE_TYPE_COLLECTION_PER_CLASS which is expected
- but ChangeTrackingPolicy = CHANGETRACKING_DEFERRED_IMPLICIT (value by default) which is NOT expected.
At the same time if to define ChangeTrackingPolicy in the Chart class instead of MappedDocument it works as expected.