public ParsingResult buildMetaDatas(ConfigurationContext configContext, List<Class<?>> entities) {
log.debug("Build meta data for candidate entities");
Map<Class<?>, EntityMeta> entityMetaMap = new HashMap<>();
boolean hasSimpleCounter = false;
for (Class<?> entityClass : entities) {
EntityParsingContext context = new EntityParsingContext(configContext, entityClass);
EntityMeta entityMeta = entityParser.parseEntity(context);
entityMetaMap.put(entityClass, entityMeta);
hasSimpleCounter = hasSimpleCounter || (context.hasSimpleCounter() && !entityMeta.structure().isClusteredCounter());
boolean shouldValidateBean = configContext.isClassConstrained(entityClass);
if (shouldValidateBean) {
configContext.addBeanValidationInterceptor(entityMeta);
}
}