Hello folks,
I am currently trying to implement annotation-based transactions with Spring 2.x and Hibernate with Oracle. So far I configured the <tx:annotation-driven>-tag and the corresponding transaction manager:
Every service class implementation has a @Transactional annotation attached:PHP Code:<!-- transaction manager -->
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource"/>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation"
value="classpath:hibernate.cfg.xml" />
</bean>
All read operations have "@Transactional(readOnly=true)".Code:@Transactional public class UserServiceImpl ......
When using the services to persist some entity there seems to be no problem:
... however the data is not committed to the database. There is no new entry! Where to configure the commit command?Code:Hibernate: insert into SCHEMA.USER ...........


Reply With Quote