<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.hibernate.version>5.0.7.Final</project.hibernate.version>
</properties>
<dependencies>
<!-- junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<!-- hibernate对jpa的支持包 -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${project.hibernate.version}</version>
</dependency>
<!-- c3p0 -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>
Jpa所需依赖和配置
最新推荐文章于 2024-09-04 17:24:18 发布
本文详细介绍了Java Persistence API (JPA) 的核心依赖和配置步骤,包括如何设置数据源、实体映射以及持久化单元配置,帮助开发者顺利集成JPA到他们的项目中。
摘要由CSDN通过智能技术生成