use of com.haulmont.cuba.core.sys.EntityClassInfo in project cuba by cuba-platform.
the class TestMetadataLoader method loadMetadata.
@Override
public void loadMetadata() {
initDatatypes(null);
MetaModelLoader modelLoader = createModelLoader(session);
for (Map.Entry<String, List<String>> entry : packages.entrySet()) {
List<EntityClassInfo> classInfos = entry.getValue().stream().map(name -> new EntityClassInfo(null, name, false)).collect(Collectors.toList());
modelLoader.loadModel(entry.getKey(), classInfos);
}
for (MetaClass metaClass : session.getClasses()) {
postProcessClass(metaClass);
initMetaAnnotations(metaClass);
}
}
Aggregations