RED-8670: integrate table inference from research #507

Closed
kilian.schuettler1 wants to merge 26 commits from RED-9145&&RED-9114 into master
3 changed files with 5 additions and 1 deletions
Showing only changes of commit aa04cb3ccd - Show all commits

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)