Issue 5257 deal hibernate autoflush