flush before updating legacy-ids
This commit is contained in:
parent
c66580a8b3
commit
3dd8916999
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user