Skip to content

Other annotations

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

AnnotationDefaultConfigTypeMethodParameter
@JdbcBatchSize1000yesyesyesyes
@JdbcReturnGeneratedValuesGENERATED_KEYSyesyesyesno

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

  • @JdbcUpdate with return a batch update For examples see SQL update

Applicable for methods annotated with

  • @JdbcUpdate

For examples see SQL update