Class TypedEnumArgumentFactory

java.lang.Object
org.jdbi.v3.core.argument.AbstractArgumentFactory<Enum>
org.jdbi.v3.postgres.TypedEnumArgumentFactory
All Implemented Interfaces:
ArgumentFactory, ArgumentFactory.Preparable

public class TypedEnumArgumentFactory extends AbstractArgumentFactory<Enum>
Default 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 Details

    • TypedEnumArgumentFactory

      public TypedEnumArgumentFactory()