Generally, it does this by maintaining awareness or state of the mapped entity class instances it is responsible for by keeping a first-level cache of instances, valid for a single thread.
通常,它通过保留对单个线程有效的一级缓存实例,维护它负责的映射实体类实例的可识别性或状态,从而做到这一点。
Flush and clear your first-level session cache periodically as in the following batch insert sample.
像如下范例中那样定期刷新(flush)并清除一级会话缓存。
应用推荐