Skip to content

🟡 Converter lookup

  • Interface-level converters are discovered from static methods or nested types annotated with @JavaToJdbc or @JdbcToJava.
  • Parent interfaces are visited before falling back to module-wide annotated converters.
  • The processor caches discovered converters per interface, ensuring deterministic resolution. Ambiguous converters or converters with incompatible signatures are reported as compilation errors.
  • Global converters may be packaged in classes implementing the marker interfaces provided by the annotations.
  • Converter are searched in the following order
    • in the scope the local interface (static methods annotated with @JavaToJdbc)
    • in the global scope, all other places (static @JavaToJdbc)
    • object methods annotated with @JavaToJdbc
    • default converter for Java record or enum
    • Basic JDBC Types