A naming standard prescribes patterns that let software infer structure or behavior from names. Spring Data applies this idea to repository methods: a Java method name can describe how data should be retrieved or stored. section 1.4.3
Spring Data recognizes comparison words embedded in method names, including LessThanEqual, Between, IsNull, IsIn, StartingWith, Containing, and IsNot. IgnoringCase handles string comparisons, while OrderBy adds sorting. section 3.3.4
Combining conditions and sorting
A method such as readOrdersByDeliveryZipAndPlacedAtBetween(String deliveryZip, Date startDate, Date endDate) combines a location condition with a date range. A method ending in OrderByDeliveryName sorts the results by delivery name.
Naming conventions work well for relatively simple queries, but long names become difficult to manage. Use @Query when a query is too complex or cannot be expressed clearly through the method name. section 3.3.4
The exact behavior depends on the persistence technology: JPA can infer queries from method names, whereas Spring Data JDBC requires @Query and SQL for custom query methods. section 3.3.4







