RED-8670: integrate table inference from research

This commit is contained in:
Kilian Schuettler 2024-05-16 22:10:09 +02:00
parent ddd24bb65c
commit aa04cb3ccd
3 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class ComponentMappingEntity {
@NonNull
@Builder.Default
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name = "component_mapping_column_labels", catalog = )
@CollectionTable(name = "component_mapping_column_labels")
List<String> columnLabels = new ArrayList<>();
@NonNull

View File

@ -3,6 +3,7 @@ package com.iqser.red.service.persistence.management.v1.processor.service;
import java.io.File;
import java.io.FileInputStream;
import java.nio.file.Path;
import java.time.OffsetDateTime;
import java.util.List;
import org.springframework.stereotype.Service;
@ -68,6 +69,7 @@ public class ComponentMappingPersistenceService {
@SneakyThrows
public void updateOrCreate(String storageId, File mappingFile, ComponentMappingEntity entity) {
entity.setChangedDate(OffsetDateTime.now());
repository.saveAndFlush(entity);
try (var in = new FileInputStream(mappingFile)) {
storageService.storeObject(TenantContext.getTenantId(), storageId, in);

View File

@ -2,6 +2,8 @@
dir=${PWD##*/}
gradle assemble
set -e
# Get the current Git branch
branch=$(git rev-parse --abbrev-ref HEAD)