Annotation Type Pattern
-
@Target(PARAMETER) @Retention(CLASS) @Incubating public @interface Pattern
Indicates that a parameter of typeString
of a finder method is a pattern involving wildcard characters_
and%
.For example:
@Find List<Book> getBooksWithTitle(@Pattern String title);
A parameter annotated
@Pattern
results in alike
condition in the generated code.- Since:
- 6.5
- See Also:
Find