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:
<!-- transaction manager -->
<property name="dataSource" ref="dataSource"/>
All read operations have "@Transactional(readOnly=true)".
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?
Hibernate: insert into SCHEMA.USER ...........