Skip to content

Commit

Permalink
[JBPM-10228] Fixing wrong flush call (#2413)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado authored May 7, 2024
1 parent 211671f commit fa12052
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 fa12052

Please sign in to comment.