Annotation Interface Pattern


@Target(PARAMETER) @Retention(CLASS) @Incubating public @interface Pattern
Indicates that a parameter of type String 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 a like condition in the generated code.

Since:
6.5
See Also: