I have an Entity which has an association to another Entity annotated with @Where, like so
public class EntityA { @OneToMany @Where(...) private
I just had the same question. I solved the problem like this:
@Query(value="SELECT * FROM EntityA", nativeQuery=true) public ignoreWhereMethod(){}
The SQL in the @Query annotation must point the table's name and the fields' names (not entity's name).