❓ 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 |
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 batch examples, see advanced JDBC usage.
JdbcUpdate.returnGeneratedValues
Section titled “JdbcUpdate.returnGeneratedValues”Applicable for methods annotated with
@JdbcUpdate
Supported values:
NONEDEFAULTGENERATED_KEYSEXECUTE_QUERY
For generated value examples, see mapping JDBC results to Java return types.