Other annotations
With following annotations you can change the default behavior of the annotation process for methods:
| Annotation | Default | Config | Type | Method | Parameter |
|---|---|---|---|---|---|
| @JdbcBatchSize | 1000 | yes | yes | yes | yes |
| @JdbcReturnGeneratedValues | GENERATED_KEYS | yes | yes | yes | no |
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
@JdbcBatchSize
Section titled “@JdbcBatchSize”Applicable for methods annotated with
@JdbcUpdatewith return a batch update For examples see SQL update
@JdbcReturnGeneratedValues
Section titled “@JdbcReturnGeneratedValues”Applicable for methods annotated with
@JdbcUpdate
For examples see SQL update