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