两种方法解决Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker

NoSuchKey