Is it going to be fixed somehow? Current implementation of beforeTransactionCompletion method in SessionImpl in Hibernate 5.1 looks like nothing has changed regarding this issue.