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 1212import jakarta .transaction .Transactional ;
1313import jakarta .validation .constraints .NotBlank ;
1414import jakarta .validation .constraints .NotNull ;
15+ import jakarta .validation .constraints .Size ;
1516
1617import java .util .List ;
1718
1819@ Repository
1920public interface Bookshop extends CrudRepository <Book ,String > {
2021 @ Find
2122 @ Transactional
22- List <Book > byPublisher (String publisher_name );
23+ List <Book > byPublisher (@ Size ( min = 2 , max = 100 ) String publisher_name );
2324
2425 @ Find
2526 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) {
109109 String type = fullType ;
110110 // strip off type annotations
111111 while ( type .charAt (0 ) == '@' ) {
112- int startIndex = type .indexOf ( ' ' );
112+ int startIndex = type .lastIndexOf ( ' ' );
113113 if ( startIndex > 0 ) {
114114 type = type .substring (startIndex +1 );
115115 }
You can’t perform that action at this time.
0 commit comments