[jOOQ/jOOQ#4819] Document the fact that org.jooq.Binding does not

necessarily have to implement a complete org.jooq.Converter
This commit is contained in:
Lukas Eder 2024-09-19 14:25:17 +02:00
parent a1c4ec3768
commit bae364033b

View File

@ -82,6 +82,12 @@ public interface Binding<T, U> extends Serializable {
/**
* A converter that can convert between the database type and the custom
* type.
* <p>
* While the {@link Converter} property of a binding is not optional
* ({@link Converter#fromType()} and {@link Converter#toType()} are needed
* by jOOQ's internals), the conversion implementation (i.e.
* {@link Converter#from(Object)} and {@link Converter#to(Object)}) isn't
* strictly required if implementations don't rely on it.
*/
@NotNull
Converter<T, U> converter();