Search in sources :

Example 1 with Provinces

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);
}
Also used : Provinces(com.developmentontheedge.be5.entitygen.experimental.genegate.entities.Provinces) Closure(groovy.lang.Closure)

Aggregations

Provinces (com.developmentontheedge.be5.entitygen.experimental.genegate.entities.Provinces)1 Closure (groovy.lang.Closure)1