I am trying to upgrade my Hibernate version from
<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 by compiling I get the following error.
TestDao.java:[5,25] cannot find symbol
[ERROR] symbol: class Transactional
[ERROR] location: package javax.transaction
I have been struggling with it for over an hour now.
I have tried adding package spring-tx
but it did not help.
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>4.2.1.RELEASE</version>
</dependency>
Did anyone face a similar issue?