Skip to content

Commit

Permalink
[JBPM-10228] Fixing wrong flush call (#2413) (#2415)
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco Javier Tirado Sarti <[email protected]>
  • Loading branch information
github-actions[bot] and fjtirado authored Jul 4, 2024
1 parent 3c3cf57 commit 60ece58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public PersistentCorrelationKey persist(PersistentCorrelationKey correlationKeyI
try {
EntityManager em = getEntityManager();
em.persist(correlationKeyInfo);
em.flush();
if (this.pessimisticLocking) {
em.flush();
return em.find(CorrelationKeyInfo.class, correlationKeyInfo.getId(), this.lockMode);
}
return correlationKeyInfo;
Expand Down

0 comments on commit 60ece58

Please sign in to comment.