Search in sources :

Example 1 with KeyColumn

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

the class KeyColumnImpl method configureForMethod.

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

Aggregations

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