parent
b7bd667486
commit
f38b825033
|
@ -427,18 +427,7 @@ public class DatasetMigrationService {
|
||||||
propertyDefinitionFieldSetEntity.setItems(new ArrayList<>());
|
propertyDefinitionFieldSetEntity.setItems(new ArrayList<>());
|
||||||
propertyDefinitionEntity.getFieldSets().put(currentFieldSet.getId().trim(), propertyDefinitionFieldSetEntity);
|
propertyDefinitionEntity.getFieldSets().put(currentFieldSet.getId().trim(), propertyDefinitionFieldSetEntity);
|
||||||
}
|
}
|
||||||
|
propertyDefinitionFieldSetEntity.setComment(comment);
|
||||||
PropertyDefinitionFieldSetItemEntity propertyDefinitionFieldSetItemEntity;
|
|
||||||
if (this.conventionService.isListNullOrEmpty(propertyDefinitionFieldSetEntity.getItems())){
|
|
||||||
propertyDefinitionFieldSetItemEntity = new PropertyDefinitionFieldSetItemEntity();
|
|
||||||
propertyDefinitionFieldSetItemEntity.setFields(new HashMap<>());
|
|
||||||
propertyDefinitionFieldSetItemEntity.setOrdinal(SimpleFieldSetOrdinal);
|
|
||||||
propertyDefinitionFieldSetEntity.getItems().add(propertyDefinitionFieldSetItemEntity);
|
|
||||||
} else {
|
|
||||||
propertyDefinitionFieldSetItemEntity = propertyDefinitionFieldSetEntity.getItems().getFirst();
|
|
||||||
}
|
|
||||||
|
|
||||||
propertyDefinitionFieldSetItemEntity.setComment(comment);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private FieldEntity buildField(Dataset item, org.opencdmp.commons.types.descriptiontemplate.FieldEntity currentField, Object propertyValue, Map<UUID, ReferenceTypeDefinitionEntity> referenceTypeDefinitionEntityMap, Map<ReferenceKey, ReferenceEntity> referenceMap, int ordinal, List<DescriptionReferenceEntity> createdDescriptionReferenceEntities, Map<TagKey, UUID> savedTagIdsByName, HashSet<UUID> existingTagIds){
|
private FieldEntity buildField(Dataset item, org.opencdmp.commons.types.descriptiontemplate.FieldEntity currentField, Object propertyValue, Map<UUID, ReferenceTypeDefinitionEntity> referenceTypeDefinitionEntityMap, Map<ReferenceKey, ReferenceEntity> referenceMap, int ordinal, List<DescriptionReferenceEntity> createdDescriptionReferenceEntities, Map<TagKey, UUID> savedTagIdsByName, HashSet<UUID> existingTagIds){
|
||||||
|
|
Loading…
Reference in New Issue