A hibernate filter defined on a @MappedSuperclass causes SQLGrammarException if SELECT statement is executed from Entity which indirectly inherits from the @MappedSuperclass.
For example, given the following classes:
the following JPQL query
fails with the following exception:
Indeed this has worked in the version 4.1.5.Final. But from the version 4.1.6.Final it has stopped working. The same error also occurs in the latest release (4.3.1.Final).
Propbably the issue https://hibernate.atlassian.net/browse/HHH-8033 is releated to this.
The attached test case is a Maven project containing tests for the example above.