摘要: delete from uauth.user join uauth.usersp on uauth.user.id = uauth.usersp.userid where uauth.usersp.SPid = #{spid,jdbcType=VARCHAR}在做关联删除时这样的sql语... 阅读全文
posted @ 2015-11-29 15:36 VinoZhu 阅读(1173) 评论(0) 推荐(1) 编辑
摘要: Spring事务的传播行为在service类前加上@Transactional,声明这个service所有方法需要事务管理。每一个业务方法开始时都会打开一个事务。Spring默认情况下会对运行期例外(RunTimeException)进行事务回滚。这个例外是unchecked如果遇到checked意... 阅读全文
posted @ 2015-11-29 13:44 VinoZhu 阅读(1899) 评论(0) 推荐(0) 编辑