/** * @param et the entity type to query * @return null if et == null * @deprecated Use {@link TEntityType#getWinerysPropertiesDefinition()} */ @Deprecated public static WinerysPropertiesDefinition getWinerysPropertiesDefinition(TEntityType et) { if (et != null) { return et.getWinerysPropertiesDefinition(); } return null; }
public @NonNull Response getProperties() { TEntityType tempType = RepositoryFactory.getRepository().getTypeForTemplate(this.template); WinerysPropertiesDefinition wpd = tempType.getWinerysPropertiesDefinition(); TEntityTemplate.Properties props = this.template.getProperties(); if (wpd == null) {
final WinerysPropertiesDefinition winerysPropertiesDefinition = entityType.getWinerysPropertiesDefinition(); if (winerysPropertiesDefinition == null) { return;
public Map<String, TPropertyDefinition> convert(TEntityType type, TEntityType.PropertiesDefinition node) { // TODO convert properties beside simple winery properties WinerysPropertiesDefinition properties = type.getWinerysPropertiesDefinition(); if (Objects.isNull(properties) || Objects.isNull(properties.getPropertyDefinitionKVList()) || properties.getPropertyDefinitionKVList().isEmpty()) return null; return properties.getPropertyDefinitionKVList().stream() .collect(Collectors.toMap( PropertyDefinitionKV::getKey, entry -> new TPropertyDefinition.Builder(convertType(entry.getType())) .setRequired(false) .build() )); }
WinerysPropertiesDefinition wpd = entityType.getWinerysPropertiesDefinition(); if (wpd != null) { if (wpd.getIsDerivedFromXSD() == null) {
return; final WinerysPropertiesDefinition winerysPropertiesDefinition = entityType.getWinerysPropertiesDefinition(); final TEntityType.PropertiesDefinition propertiesDefinition = entityType.getPropertiesDefinition(); if ((winerysPropertiesDefinition != null) || (propertiesDefinition != null)) {