derived query method

A Spring Data repository method whose query is worked out from its name, such as findByStatus meaning select entities whose status equals the argument.

In more detail

Derived names suit simple filters. When a name grows long or the intent is complex, a custom query states it more clearly.

Example

List<OrderEntity> findByStatus(String status);

Related terms

Taught in

References