Search in sources :

Example 1 with SqlService

use of com.developmentontheedge.be5.api.services.SqlService in project be5 by DevelopmentOnTheEdge.

the class DatabaseModel method getEntity.

@Override
public EntityModel getEntity(String entityName) {
    Objects.requireNonNull(entityName);
    Entity entity = meta.getEntity(entityName);
    if (entity == null)
        throw Be5Exception.unknownEntity(entityName);
    return new EntityModelBase(sqlService, dpsHelper, validator, operationHelper, operationExecutor, meta, entity);
}
Also used : Entity(com.developmentontheedge.be5.metadata.model.Entity)

Aggregations

Entity (com.developmentontheedge.be5.metadata.model.Entity)1