Skip to content

Commit b98a734

Browse files
committed
Fix another unresolved Hibernate proxies case in postCommit
1 parent 03e6ff3 commit b98a734

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/dao/impl/jpa/JpaCommitDao.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ public UUID getId() {
159159
}
160160
}).forEach(em::merge);
161161
commit.setChanges(commit.getChanges().stream().map(em::merge).collect(Collectors.toSet()));
162-
return super.persist(commit, em);
162+
Optional<Commit> persistedCommit = super.persist(commit, em);
163+
persistedCommit.ifPresent(PROXY_RESOLVER);
164+
return persistedCommit;
163165
});
164166
}
165167

0 commit comments

Comments
 (0)