public class TypedEnumArgumentFactory extends AbstractArgumentFactory<Enum>
jdbi behavior is to bind Enum subclasses as
a string, which Postgres won't implicitly convert to an enum type.
If instead you bind it as java.sql.Types.OTHER, Postgres will
autodetect the enum correctly.| Constructor and Description |
|---|
TypedEnumArgumentFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Argument |
build(Enum value,
ConfigRegistry config) |
buildprotected Argument build(Enum value, ConfigRegistry config)
build in class AbstractArgumentFactory<Enum>Copyright © 2018. All rights reserved.