use of jakarta.nosql.mapping.Repository in project jnosql-diana by eclipse.
the class RepositoryColumnBean method create.
@Override
public Repository create(CreationalContext<Repository> creationalContext) {
ClassMappings classMappings = getInstance(ClassMappings.class);
ColumnTemplate template = provider.isEmpty() ? getInstance(ColumnTemplate.class) : getInstance(ColumnTemplate.class, DatabaseQualifier.ofColumn(provider));
Converters converters = getInstance(Converters.class);
ColumnRepositoryProxy handler = new ColumnRepositoryProxy(template, classMappings, type, converters);
return (Repository) Proxy.newProxyInstance(type.getClassLoader(), new Class[] { type }, handler);
}
Aggregations