hibernate 和 JPA之间的关系
来源:互联网 发布:胡歌女朋友知乎 编辑:程序博客网 时间:2024/05/17 23:43
内容摘自stackoverflow.url如下:
http://stackoverflow.com/questions/9881611/whats-the-difference-between-jpa-and-hibernate
As you state JPA is just a specification, meaning there is no implementation. You can annotate your classes as much as you would like with JPA annotations, however without an implementation nothing will happen. Think of JPA as the guidelines that must be followed or an interface, while Hibernate's JPA implementation is code that meets the API as defined by the JPA specification and provides the under the hood functionality.
When you use Hibernate with JPA you are actually using the Hibernate JPA implementation. The benefit of this is that you can swap out Hibernate's implementation of JPA for another implementation of the JPA specification. When you use straight Hibernate you are locking into the implementation because other ORMs may use different methods/configurations and annotations, therefore you cannot just switch over to another ORM.
- hibernate 和 JPA之间的关系
- JDBC,JdbcTemplate,JPA,Hibernate之间的关系
- EJB3.0,JPA,Hibernate之间的关系
- JPA和Hibernate的关系
- JPA和Hibernate的关系
- JPA和Hibernate的关系
- JPA和Hibernate的关系
- JPA和Hibernate的关系
- hibernate和jpa的关系
- JPA和Hibernate的关系
- SpringData Jpa、Hibernate、Jpa 三者之间的关系
- spring data jpa hibernate jpa 三者之间的关系
- SpringData Jpa、Hibernate、Jpa 三者之间的关系
- SpringData Jpa、Hibernate、Jpa 三者之间的关系
- spring data jpa hibernate jpa 三者之间的关系
- JPA和hibernate关系
- jpa 和hibernate 关系
- JPA和Hibernate的关系1
- matlab实现图像增强
- Android总结(三)
- VS2013MFC对话框工程学习笔记一 - 新建MFC对话框项目
- Android进程命令查看
- iPhone屏幕尺寸、分辨率及适配
- hibernate 和 JPA之间的关系
- Qt类之QAction
- 数组与指针
- 欢迎使用CSDN-markdown编辑器
- NGINX error
- Unity3D性能优化--- 收集整理的一堆
- 【2016年4月11日】Activity的生命周期和启动模式
- 解析自动休眠--->实现自动关机
- 集合之LinkedList