Skip to content

❓ Other annotations

With following annotations you can change the default behavior of the annotation process for methods:

AnnotationDefaultConfigTypeMethodParameter
@JdbcBatchSize1000yesyesyesyes

They can show up on different places and will be resolved in the following order

  • param: the flagged parameter will be used as input value in the generated code.
  • method: it will change the behavior of this method and must be valid for the method
  • type: you can change the behavior for all applicable methods in the type or below types
  • config: you can change the behavior for all applicable methods in the type or below types

Applicable for methods annotated with

Applicable for methods annotated with

  • @JdbcUpdate

Supported values:

  • NONE
  • DEFAULT
  • GENERATED_KEYS
  • EXECUTE_QUERY

For generated value examples, see mapping JDBC results to Java return types.