@SuppressWarnings("rawtypes") private Map<String, IComponentDescriptor<?>> buildContractNameIdMap() { Map<String, IComponentDescriptor<?>> map = new HashMap<>(); Map<String, IComponentDescriptor> idToComponentDescriptors = componentApplicationContext.getBeansOfType( IComponentDescriptor.class, false, false); for (Map.Entry<String, IComponentDescriptor> descriptorEntry : idToComponentDescriptors.entrySet()) { IComponentDescriptor componentDescriptor = descriptorEntry.getValue(); if (componentDescriptor.getComponentContract() != null) { map.put(componentDescriptor.getComponentContract().getName(), componentDescriptor); if (componentDescriptor.isTranslatable()) { ICollectionPropertyDescriptor<?> collectionPropertyDescriptor = (ICollectionPropertyDescriptor<?>) componentDescriptor .getPropertyDescriptor(AbstractComponentDescriptor.getComponentTranslationsDescriptorTemplate().getName()); if (collectionPropertyDescriptor != null) { IComponentDescriptor<?> translationComponentDescriptor = collectionPropertyDescriptor .getReferencedDescriptor().getElementDescriptor(); if (translationComponentDescriptor.getComponentContract() != null) { map.put(translationComponentDescriptor.getComponentContract().getName(), translationComponentDescriptor); } } } } } map.put(BasicDescriptorDescriptor.INSTANCE.getName(), BasicDescriptorDescriptor.INSTANCE); return map; } }
AbstractComponentDescriptor.getComponentTranslationsDescriptorTemplate().getName()); if (translations != null && isInitialized(translations)) { String sessionLanguage = locale.getLanguage();
String oldTranslation = invokeNlsGetter(proxy, propertyDescriptor); Set<IPropertyTranslation> translations; String translationsPropertyName = AbstractComponentDescriptor.getComponentTranslationsDescriptorTemplate() .getName();
componentDescriptor, aQueryComponent, context)); } else { String translationsPath = AbstractComponentDescriptor.getComponentTranslationsDescriptorTemplate().getName(); String translationsAlias = currentCriteria.getAlias() + "__" + componentDescriptor.getComponentContract().getSimpleName() + "__"
getComponentTranslationsDescriptorTemplate() .clone(); translationsPropertyDescriptor.setSqlName("T");
componentDescriptor, aQueryComponent, context)); } else { String translationsPath = AbstractComponentDescriptor.getComponentTranslationsDescriptorTemplate().getName(); for (Map.Entry<String, Object> property : aQueryComponent.entrySet()) { String propertyName = property.getKey();