File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
tooling/metamodel-generator/src
jakartaData/java/org/hibernate/processor/test/data/eg
main/java/org/hibernate/processor/annotation Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 12
12
import jakarta .transaction .Transactional ;
13
13
import jakarta .validation .constraints .NotBlank ;
14
14
import jakarta .validation .constraints .NotNull ;
15
+ import jakarta .validation .constraints .Size ;
15
16
16
17
import java .util .List ;
17
18
18
19
@ Repository
19
20
public interface Bookshop extends CrudRepository <Book ,String > {
20
21
@ Find
21
22
@ Transactional
22
- List <Book > byPublisher (String publisher_name );
23
+ List <Book > byPublisher (@ Size ( min = 2 , max = 100 ) String publisher_name );
23
24
24
25
@ Find
25
26
List <Book > byTitle (@ Nonnull String title );
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ String strip(final String fullType) {
109
109
String type = fullType ;
110
110
// strip off type annotations
111
111
while ( type .charAt (0 ) == '@' ) {
112
- int startIndex = type .indexOf ( ' ' );
112
+ int startIndex = type .lastIndexOf ( ' ' );
113
113
if ( startIndex > 0 ) {
114
114
type = type .substring (startIndex +1 );
115
115
}
You can’t perform that action at this time.
0 commit comments