use of com.developmentontheedge.be5.entitygen.experimental.genegate.entities.Provinces in project be5 by DevelopmentOnTheEdge.
the class ProvincesRepository method toMap.
@Override
public Map<String, Object> toMap(@DelegatesTo(strategy = Closure.DELEGATE_FIRST, value = Provinces.class) final Closure config) {
Provinces entity = new Provinces();
// todo need this
Closure code = config.rehydrate(entity, entity, entity);
code.setResolveStrategy(Closure.DELEGATE_FIRST);
code.call();
return toMap(entity);
}