fix import error for missing contractual contact and legacy-ids #17

Merged
hsh-michaelhoennig merged 2 commits from fix-import-warning-missing-contractual into master 2024-02-05 14:37:50 +01:00
Showing only changes of commit 3dd8916999 - Show all commits

View File

@ -596,6 +596,7 @@ public class ImportOfficeData extends ContextBasedTest {
Map<Integer, E> entities,
final String legacyIdTable,
final String legacyIdColumn) {
em.flush();
entities.forEach((id, entity) -> em.createNativeQuery("""
UPDATE ${legacyIdTable}
SET ${legacyIdColumn} = :legacyId