Skip to content

Commit

Permalink
minor fix to generated @see jdoc annotation in @find method
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin King <[email protected]>
  • Loading branch information
gavinking committed Oct 24, 2024
1 parent 7bf6004 commit d25a86b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
import jakarta.transaction.Transactional;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

import java.util.List;

@Repository
public interface Bookshop extends CrudRepository<Book,String> {
@Find
@Transactional
List<Book> byPublisher(String publisher_name);
List<Book> byPublisher(@Size(min=2,max=100) String publisher_name);

@Find
List<Book> byTitle(@Nonnull String title);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ String strip(final String fullType) {
String type = fullType;
// strip off type annotations
while ( type.charAt(0) == '@' ) {
int startIndex = type.indexOf( ' ' );
int startIndex = type.lastIndexOf( ' ' );
if ( startIndex > 0 ) {
type = type.substring(startIndex+1);
}
Expand Down

0 comments on commit d25a86b

Please sign in to comment.