Package org.kiwiproject.jdbi2.sqlobject
Annotation Type BindJSONB
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface BindJSONB
Allows binding String values to JSONB columns in Postgres when using JDBI version 2.Usage: annotate a parameter in a JDBI SQLObject data access object with this annotation. Example:
@SqlUpdate("insert into articles (uuid, content) values (:uuid, :content)") void insertContent(@Bind("uuid") String uuid, @BindJSONB("content") String content)Note that both jdbi (version 2) and postgres dependencies must be available at runtime.
-
-
Element Detail
-
value
String value
-
-