首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

spring日记分析

2012-09-14 
spring日志分析@Testpublic void update(){//ApplicationContext actnew ClassPathXmlApplicationContext

spring日志分析
@Test
public void update(){
//ApplicationContext act=new ClassPathXmlApplicationContext("beans.xml");
//PersonService personService=(PersonService)act.getBean("personServiceBean");
Person person = personService.getPerson(7);
person.setName("aaaa");
//personService.update(person);
personService.update(person);
}
日志

[main] DEBUG org.springframework.transaction.annotation.AnnotationTransactionAttributeSource - Adding transactional method [getPerson] with attribute
[PROPAGATION_NOT_SUPPORTED,ISOLATION_DEFAULT,readOnly]
[main] DEBUG org.springframework.transaction.support.TransactionSynchronizationManager - Initializing transaction synchronization
[main] DEBUG org.springframework.transaction.interceptor.TransactionInterceptor - Getting transaction for [net.risesoft.service.user.PersonService.getPerson]
[main] DEBUG org.springframework.orm.jpa.EntityManagerFactoryUtils - Opening JPA EntityManager
[main] DEBUG org.springframework.orm.jpa.EntityManagerFactoryUtils - Registering transaction synchronization for JPA EntityManager
[main] DEBUG org.springframework.transaction.support.TransactionSynchronizationManager - Bound value [org.springframework.orm.jpa.EntityManagerHolder@1352367] for key [org.springframework.orm.jpa.LocalEntityManagerFactoryBean@1a76eff] to thread [main]
Hibernate: select person0_.presonId as presonId2_0_, person0_.name as name2_0_ from xxperson person0_ where person0_.presonId=?
[main] DEBUG org.springframework.transaction.interceptor.TransactionInterceptor - Completing transaction for [net.risesoft.service.user.PersonService.getPerson]
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Triggering beforeCommit synchronization
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Triggering beforeCompletion synchronization
[main] DEBUG org.springframework.transaction.support.TransactionSynchronizationManager - Removed value [org.springframework.orm.jpa.EntityManagerHolder@1352367] for key [org.springframework.orm.jpa.LocalEntityManagerFactoryBean@1a76eff] from thread [main]
[main] DEBUG org.springframework.orm.jpa.EntityManagerFactoryUtils - Closing JPA EntityManager
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Triggering afterCommit synchronization
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Triggering afterCompletion synchronization
[main] DEBUG org.springframework.transaction.support.TransactionSynchronizationManager - Clearing transaction synchronization
[main] DEBUG org.springframework.transaction.annotation.AnnotationTransactionAttributeSource - Adding transactional method [update] with attribute [PROPAGATION_REQUIRED,ISOLATION_DEFAULT]
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Creating new transaction with name [net.risesoft.service.user.PersonService.update]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Opened new EntityManager [org.hibernate.ejb.EntityManagerImpl@1ad0839] for JPA transaction
[main] DEBUG org.springframework.transaction.support.TransactionSynchronizationManager - Bound value [org.springframework.orm.jpa.EntityManagerHolder@771eb1] for key [org.springframework.orm.jpa.LocalEntityManagerFactoryBean@1a76eff] to thread [main]
[main] DEBUG org.springframework.transaction.support.TransactionSynchronizationManager - Initializing transaction synchronization
[main] DEBUG org.springframework.transaction.interceptor.TransactionInterceptor - Getting transaction for [net.risesoft.service.user.PersonService.update]
[main] DEBUG org.springframework.transaction.support.TransactionSynchronizationManager - Retrieved value [org.springframework.orm.jpa.EntityManagerHolder@771eb1] for key [org.springframework.orm.jpa.LocalEntityManagerFactoryBean@1a76eff] bound to thread [main]
Hibernate: select person0_.presonId as presonId2_0_, person0_.name as name2_0_ from xxperson person0_ where person0_.presonId=?[main] DEBUG org.springframework.transaction.interceptor.TransactionInterceptor - Completing transaction for [net.risesoft.service.user.PersonService.update]
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Triggering beforeCommit synchronization
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Triggering beforeCompletion synchronization
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Initiating transaction commit
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Committing JPA transaction on EntityManager [org.hibernate.ejb.EntityManagerImpl@1ad0839]
Hibernate: update xxperson set name=? where presonId=?[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Triggering afterCommit synchronization
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Triggering afterCompletion synchronization
[main] DEBUG org.springframework.transaction.support.TransactionSynchronizationManager - Clearing transaction synchronization
[main] DEBUG org.springframework.transaction.support.TransactionSynchronizationManager - Removed value [org.springframework.orm.jpa.EntityManagerHolder@771eb1] for key [org.springframework.orm.jpa.LocalEntityManagerFactoryBean@1a76eff] from thread [main]
[main] DEBUG org.springframework.orm.jpa.JpaTransactionManager - Closing JPA EntityManager [org.hibernate.ejb.EntityManagerImpl@1ad0839] after transaction
[main] DEBUG org.springframework.orm.jpa.EntityManagerFactoryUtils - Closing JPA EntityManager

热点排行