@Override
    public Optional<RowMapper<?>> build(Type type, ConfigRegistry config) {
        Class<?> clazz = getErasedType(type);
        return clazz.isAnnotationPresent(Entity.class)
                ? Optional.of(new JpaMapper<>(clazz))
                : Optional.empty();
    }
Create {@link JpaMapper}s for {@link Entity} annotated classes.
jpa/src/main/java/org/jdbi/v3/jpa/JpaMapperFactory.java