赞
踩
JPA (Java Pesitence API )是 Java 的持久化 API ,用于对象的持久化。它是一个非常强 大的 ORM 持久化的解决方案 免去了使用 JDBCTemplate 开发的编写脚本工作。 JPA 通过简单约定好接口方法的规则自动生成相应的 JPQL 语句,然后映射成 POJO 对象
JPA 是一个规范化接口,封装了 Hibernate 的操作作为默认实现 让用户不通过任何配置即可完成数据库的操作。 JPA Spring Date 相同bernate 的关系如图 所示

Hibernate 主要通过 hibernate-annotation,hibernate -entitymanage 相同hibernate-core三个组件来操作数据。
• hibernate-annotation :是 Hibernate 支持 annotation 万式配 的基础,它包括标准的 JPA annotation, Hibernate 自身特殊功能的 annotation
• hibernate-core :是 Hibernate 的核心实现,提供了 Hibernate 所有的核心功能
• hibernate-entitymanager:实现了标准的 JPA ,它是 hibernate core和 JPA 之间的适 配器,它不直接提供 ORM 的功能,而是对 hibernate-co
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。