Search in sources :

Example 1 with ValueColumn

use of org.jdbi.v3.sqlobject.config.ValueColumn in project jdbi by jdbi.

the class ValueColumnImpl method configureForMethod.

@Override
public void configureForMethod(ConfigRegistry registry, Annotation annotation, Class<?> sqlObjectType, Method method) {
    ValueColumn valueColumn = (ValueColumn) annotation;
    String name = valueColumn.value();
    registry.get(MapEntryMappers.class).setValueColumn(name.isEmpty() ? null : name);
}
Also used : MapEntryMappers(org.jdbi.v3.core.mapper.MapEntryMappers) ValueColumn(org.jdbi.v3.sqlobject.config.ValueColumn)

Aggregations

MapEntryMappers (org.jdbi.v3.core.mapper.MapEntryMappers)1 ValueColumn (org.jdbi.v3.sqlobject.config.ValueColumn)1