RED-8670: integrate table inference from research
This commit is contained in:
parent
ddd24bb65c
commit
aa04cb3ccd
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -2,6 +2,8 @@
|
||||
dir=${PWD##*/}
|
||||
gradle assemble
|
||||
|
||||
set -e
|
||||
|
||||
# Get the current Git branch
|
||||
branch=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user