Issue Type: Improvement Improvement
Affects Versions: 4.1.4
Assignee: Unassigned
Components: annotations
Created: 05/Sep/12 3:24 AM
Description:

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:

@FetchOverride(entity=A.class, ...)

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.:

@FetchOverride(entity=A.class, includeSubclasses=true, ...)

The default value should probably be false for backward compatibility.

Project: Hibernate ORM
Labels: subclass FetchProfile FetchOverride inherit
Priority: Minor Minor
Reporter: Falko Modler
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira