5.3.1. Query Lookup Strategies
The JPA module supports defining a query manually as a String or having it being derived from the method name.
Although getting a query derived from the method name is quite convenient, one might face the situation in which either the method name parser does not support the keyword one wants to use or the method name would get unnecessarily ugly. So you can either use JPA named queries through a naming convention (see Using JPA Named Queries for more information) or rather annotate your query method with