But it may be necessary to explicitly clear the cache.
但是有时也可能有必要显式地清除缓存。
If you use a stateful session, don't forget to clear the cache before you execute the DML otherwise Hibernate will update or evict the related cache (See the Example 10 below for details).
如果使用有状态会话,不要忘记在执行DML前清除缓存,否则Hibernate将会更新或清除相关缓存(见下面的范例10)。
应用推荐