I am trying to upgrade a version of Hibernate with
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>4.3.11.Final</version> </dependency>
to
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>5.0.1.Final</version> </dependency>
Unfortunately, when compiling, I get the following error.
TestDao.java: [5.25] cannot find character
Symbol [ERROR]: Transactional class
[ERROR] location: javax.transaction package
I struggled with this for more than an hour.
I tried to add the spring-tx package, but that did not help.
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> <version>4.2.1.RELEASE</version> </dependency>
Has anyone encountered a similar problem?
source share