Skip to content

❓ Additional annotations

  • @JdbcGeneration defines additional annotations which should be added to the constructor or the class of the generated class
    • classAnnotations will be added to the class
    • constructorAnnotations will be added to the constructor
  • @JdbcDebug for the annotated element the processor will enable extra debug logs (mainly needed for debugging purpose)
AnnotationKindSelectUpdateBatchDefault
@JdbcBatchSizedynamic⛔️⛔️1000
@JdbcFetchDirectiondynamic⛔️⛔️unset
@JdbcFetchSizedynamic⛔️⛔️unset
@JdbcMaxRowsdynamic⛔️⛔️unset
@JdbcNoMoreRowsfix⛔️⛔️THROW_EXCEPTION
@JdbcNoRowsfix⛔️⛔️THROW_EXCEPTION
@JdbcQueryTimeoutdynamicunset
@JdbcResultSetConcurrencydynamic⛔️⛔️unset
@JdbcResultSetTypedynamic⛔️⛔️unset
  • the table shows which annotation can be used with @JdbcSelect
  • Kind of the annotation defined the resolution:
    • fixed:
      • the lookup path is: method, interface, config
      • the first value which is either THROW_EXCEPTION or RETURN_NULLwill be taken
    • dynamic
      • the lookup path is: method parameter, method, interface, config
      • method parameter: the developer can define the value dynamicly by setting the parameter on method call
      • method, interface, config: the first value which is not UNSPECIFIED is taken and can not be changed any more
❗️@JdbcFetchDirection ❗️@JdbcFetchSize ❗️@JdbcMaxRows ❗️@JdbcNoMoreRows ❗️@JdbcNoRows ❗️@JdbcResultSetConcurrency ❗️@JdbcResultSetConcurrency ❗️@JdbcResultSetType ❗️@JdbcResultSetType ❗️@JdbcBatchSize ❗️JdbcUpdate.returnGeneratedValues