Open
Description
Сергей Цыпанов opened DATAJPA-1445 and commented
Consider the method
@Override
@Modifying(flushAutomatically = true)
public void deleteContractDataBySnapshotId(Long snapshotId) {
//getSession().flush();
String query = "delete from table sn where sn.smth = true ";
getSession().createNativeQuery(query)
.addSynchronizedQuerySpace("") //keep 2nd level cache
.executeUpdate();
}
This code doen't flush session which is why we have to uncomment
getSession().flush()
I think this behaviour is not correct, otherwise this must be specified in javadoc
No further details from DATAJPA-1445