java - Hibernate 5 import cannot be resolved -
i'm working on maven project in eclipse , got error hibernate imports. here maven xml file , java file:
pom.xml (some jboss , tomcat dependencies omitted relevance)
<dependency> <groupid>javax.transaction</groupid> <artifactid>jta</artifactid> <version>1.1</version> </dependency> <!-- spring , transactions --> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context</artifactid> <version>4.3.2.release</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-tx</artifactid> <version>4.3.2.release</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-jdbc</artifactid> <version>4.3.2.release</version> </dependency> <!-- spring orm support --> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-orm</artifactid> <version>4.3.2.release</version> </dependency> <!-- hibernate --> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-core</artifactid> <version>5.2.2.final</version> </dependency> <dependency> <groupid>org.hibernate.common</groupid> <artifactid>hibernate-commons-annotations</artifactid> <version>5.0.1.final</version> </dependency> <dependency> <groupid>org.hibernate.javax.persistence</groupid> <artifactid>hibernate-jpa-2.1-api</artifactid> <version>1.0.0.final</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-envers</artifactid> <version>5.2.2.final</version> </dependency>
hibernateconfig.java
package config; //some imports omitted relevance //these 2 imports give me "org.springframework.orm cannot resolved" import org.springframework.orm.hibernate5.hibernatetransactionmanager; import org.springframework.orm.hibernate5.localsessionfactorybean; @configuration @enabletransactionmanagement @componentscan({ "src.config" }) @propertysource(value = { "classpath:application.properties" }) public class hibernateconfig {}
Comments
Post a Comment