xx.hbm.xml中相关重要的配置

 1.<!-- 指定hibernate操作数据库时的隔离级别
            #hibernate.connection.isolation 1|2|4|8        
            0001    1    读未提交
            0010    2    读已提交
            0100    4    可重复读
            1000    8    串行化
         -->
  <property name="hibernate.connection.isolation">4</property>
      

  2.<!-- 指定session与当前线程绑定 -->
  <property name="hibernate.current_session_context_class">thread</property>

原文地址:https://www.cnblogs.com/houchen/p/10634338.html