The Java Persistence API introduced in Java EE 5 is a subset of EJB 3 and replaces the persistence solution of EJB 2.0 CMP. JPA 1.0 has been defined as part of the EJB 3.0 specification (JSR 220) but can be used without and outside an EJB container. In Java EE 6, JPA 2.0 has its separate specification (JSR 317), outside the EJB 3.1 specification (JSR 318). So to summarize:
JPA is a subset of EJB 3 and implementations are provided by persistence providers like Toplink Essentials / EclipseLink, Hibernate, Kodo / OpenJPA (Kodo is the project from which the OpenJPA source code was derived and Kodo is now, in turn, based on OpenJPA), etc.
EJB 3 is a wider specification and implementations are provided by the EJB container of application servers that rely on persistence providers:
The default persistence provider of GlassFish v3 is EclipseLink
The default persistence provider of JBoss is Hibernate
The default persistence provider of WebLogic 10.3.1+ is OpenJPA/Kodo or EclipseLink
The default persistence provider of WebSphere 6.1+ is (based on) OpenJPA
相关文档:http://www.enkj.com/help/newscontent/19490
相关推荐
JPA/JBOSS/EJB基础教程PDF资料
DataNucleus 通过JPA/JDO访问mysql示例,具体介绍可以见我的博客
NULL 博文链接:https://ll-feng.iteye.com/blog/1908511
仿照jpa/Hibernate通过反射导入Excel的核心源码
使用springboot + JPA / MyBatis 实现多数据源动态切换
通过sql来映射实体,dao,service等等增删改查基础方法,节约重复代码的时间,提高代码品质效率,适用框架JPA/JdbcTemplate/Mybatis/MybatisPlus
2018年Java Activiti6.x 视频整合Spring Boot/JPA/WEB框架实战 01 Activiti介绍与搭建开发环境 02 运行官方例子 03 编写第一个Activiti程序 04 流程引擎配置与服务组件 05 Activiti数据库介绍 06 API(1)...
JPA内嵌EJB组件,实现会话bean的管理,通过运行时查询JNDI注入,实现代理对象创建。
easy trans是一款用于做数据翻译的代码辅助插件,利用mybatis plus/jpa/beetsql 等ORM框架的能力自动查表,让开发者可以快速的把id/字典码 翻译为前端需要展示的数据
经典Java EE企业应用实战:基于WebLogic/JBoss的JSF+EJB 3+JPA整合开发 part3
压缩包中包含:EJB3.0实例教程 JPA教程 实战EJB三本电子书,都是不错的学习资料。
《经典Java EE企业应用实战:基于WebLogic/JBoss的JSF+EJB 3+JPA整合开发》介绍了Java EE规范的三大主要规范JSF、EJB 3和JPA,其中JSF是Sun公司提供的JSF RI;EJB 3部分则包含Session Bean、Message Driven Bean的...
spring-javaconfig-sample, Spring MVC/Spring Data JPA/Hibernate的spring JavaConfig示例 spring-配置示例自 spring 3.0以来,JavaConfig特性被包含在核心 spring 模块中。 因此Java开发人员可以将 spring bean...
eclipse3.6创建EJB+JPA+EAR(每个都是单独工程)完整介绍:自动创建表结构、数据源配置、jpa和ejb工程添加到ear包中。以及注入Emanager。 要这么高的分只是为了物有所值。
各种主流JAVA框架的比较,包括JSF,Struts,EJB,Hibernate,jpa,spring
经典JAVA EE企业应用实战基于WEBLOGIC JBOSS的JSF+EJB 3+JPA整合开发——源码.part1 其他部分详见我的上传列表,全部分卷下载完成才能解压。 本书介绍了Java EE规范的三大主要规范JSF、EJB 3和JPA,其中JSF是Sun...
jpa jpa规范 jpa源码 jpa jpa规范 jpa源码
博文链接:https://lindows.iteye.com/blog/228139
让Java EE再次变酷使用JPA和EJB构建基于MongoDB的网络服务
EJB3+JBOSS5+JPA整合,里面还用到了ejb3注解。