高分求解,spring+hibbernate不执行更新能查询
2009-09-02 12:44:47,953 INFO [org.hibernate.cfg.SettingsFactory] - Echoing all SQL to stdout
2009-09-02 12:44:47,953 INFO [org.hibernate.cfg.SettingsFactory] - Statistics: disabled
2009-09-02 12:44:47,953 INFO [org.hibernate.cfg.SettingsFactory] - Deleted entity synthetic identifier rollback: disabled
2009-09-02 12:44:47,953 INFO [org.hibernate.cfg.SettingsFactory] - Default entity-mode: pojo
2009-09-02 12:44:47,953 INFO [org.hibernate.cfg.SettingsFactory] - Named query checking : enabled
2009-09-02 12:44:47,984 INFO [org.hibernate.impl.SessionFactoryImpl] - building session factory
2009-09-02 12:44:48,359 INFO [org.hibernate.impl.SessionFactoryObjectFactory] - Not binding factory to JNDI, no JNDI name configured
2009-09-02 12:44:48,515 INFO [org.springframework.orm.hibernate3.HibernateTransactionManager] - Using DataSource [org.apache.commons.dbcp.BasicDataSource@1d6fbb3] of Hibernate SessionFactory for HibernateTransactionManager
2009-09-02 12:44:48,703 INFO [com.stsoft.examonline.test] - Began transaction (1): transaction manager [org.springframework.orm.hibernate3.HibernateTransactionManager@15fb38]; default rollback = true
Hibernate: select SEQ_EMP.nextval from dual
2009-09-02 12:44:48,890 INFO [com.stsoft.examonline.test] - Rolled back transaction after test execution
2009-09-02 12:44:48,890 INFO [org.springframework.context.support.GenericApplicationContext] - Closing org.springframework.context.support.GenericApplicationContext@18e3e60: display name [org.springframework.context.support.GenericApplicationContext@18e3e60]; startup date [Wed Sep 02 12:44:46 CST 2009]; root of context hierarchy
2009-09-02 12:44:48,890 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@12a3722: defining beans [propertyConfigurer,dataSource,sessionFactory,baseHibernateDao,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,txAdvice,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,employeeDao,employeeService]; root of factory hierarchy
2009-09-02 12:44:48,890 INFO [org.springframework.orm.hibernate3.LocalSessionFactoryBean] - Closing Hibernate SessionFactory
2009-09-02 12:44:48,890 INFO [org.hibernate.impl.SessionFactoryImpl] - closing
hibernate能查询,我执行过查询语句,
不能更新和插入
如上,插入时都能去查序列,却没有执行更新