Hi,
I've got two classes: EntityHb and Indexed EntityHb, looking like this:
Code:
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@org.hibernate.annotations.FilterDefs({
    @org.hibernate.annotations.FilterDef(
            name = "indexFilter", 
            parameters = {
                @org.hibernate.annotations.ParamDef(name="index", type="integer")
            }
    )
})
public abstract class EntityHb implements Serializable {
    
    protected Integer id;
    ...
}
and
Code:
@Entity
@Table(name="test_indexed_entity")
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)    
@Filter(name = "indexFilter", condition=":index > index")
public class IndexedEntityHb extends EntityHb {
    
    protected Integer index;
    ...
}
The problem is the "indexFilter" filter is ignored while executing any query, such as "FROM IndexedEntityHb". The application works fine if the @Filter tag is placed at EntityHb class. However, I need to define this filter in IndexedEntityHb class.
Thanks in advance for every hints.