I am quite new in Spring world. I have developed a DAO using Spring 3.2 and Hibernate 4.1.9 but I have noticed a strange thing.
All the used dependencies related to Spri
The @Transactional
annotation is in the spring-tx module. Include version 3.2.1 of that, and always make sure to use the same version of all Spring modules.
Try using all spring related dependencies of same version. I guess org.springframework.transaction.annotation.Transactional is present in spring 3.2.0. So this should not be issue. Include spring-tx dependency for @Transactionl to work.
The package org.springframework.transaction
is provided by the spring-tx
artifact. Add the following to your pom.xml and do maven update, that should do:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${org.springframework-version}</version>
</dependency>