2012-09-12

技术方面

  • Spring事务管理器采用了org.springframework.orm.hibernate4.HibernateTransactionManager,其实将来应该考虑换到JTA,如果涉及多数据库的话。
  • @Transactional的rollbackFor需要逐个service去写,比较麻烦,但如果写成配置文件AOP CutPoint的话,又需要对各个service进行定义,所以暂时还是使用annotation的写法
  • 默认情况下(Propagation=REQUIRED),一个 service method call 另一个service method,事务将会沿用
  • 但在TestCase中,test method本身没有事务,调用多个service method的话,会导致他们处于各自的事务当中,如何处理?

管理方面

  • 客户直接提出要写Comment,尤其是Class Description,这个是比较容易忽略的
  • 我的TestCase进度也比较慢,主要是研究 @Transactional以及事务传递和rollback去了
  • Alfred上午请假
  • Search User进展缓慢

猜你喜欢

转载自search.iteye.com/blog/1677424