Currently, a @FetchOverride applies only to the very same class that is given by the "entity" attribute.
Say you have Class A for which following override ist defined:
This override is not applied to a Class B which extends A.
At present, if you want the override to be applied to B, you need to copy the @FetchOverride of A and change entity=A.class to entity=B.class (in that copy). This bloats the code.
It would be much more convenient and would lead to much cleaner code if there was an attribue like "includeSubclasses" (or just "subclasses"), e.g.:
The default value should probably be false for backward compatibility.
|