Oracle数据库:
SET TRANSACTION ISOLATION LEVEL语句来设置ORACLE事务隔离级别。
JDBC:
设置Connection的setTransactionIsolation()
Spring中:
设置在方的注解里。如:
@Transactional(readOnly=true, propagation=Propagation.NOT_SUPPORTED,isolation=Isolation.DEFAULT)
public void find(Integer id) {
em.find(Person.class, id);
}