我使用JPA,并将Hibernate作为其实现。我的项目中 需要* 具备哪些maven2依赖关系? *
maven2
我相信您仅需要两件事就是hibernate的entitymanager,然后是SLF4J日志记录捆绑包之一。其他所有内容都应作为依赖项引入:
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>3.5.1-Final</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-jdk14</artifactId> <!-- version 1.5.8 is the latest version that will work with the slf4j-api that's currently bundled with hibernate-parent --> <version>1.5.8</version> </dependency>