Java Persistence API 2.0

此功能部件启用对一些应用程序的支持,这些应用程序使用写至 Java 持久性 API 2.0 规范的应用程序管理的 JPA 和容器管理的 JPA。该支持是以 Apache OpenJPA 为基础构建,提供扩展来支持容器管理的编程模型。

启用此功能部件

要启用 Java 持久性 2.0 功能部件,请在 server.xml 文件的 featureManager 元素内添加以下元素声明:
<feature>jpa-2.0</feature>

开发依赖于此功能部件的功能部件

如果您要开发依赖于 Java 持久性 API 2.0 功能部件的功能部件,请在新功能部件的功能部件清单文件的 Subsystem-Content 头中添加以下项:
com.ibm.websphere.appserver.jpa-2.0; type="osgi.subsystem.feature"

此功能部件提供的标准 API 包

  • javax.persistence
  • javax.persistence.criteria
  • javax.persistence.metamodel
  • javax.persistence.spi

此功能部件提供的第三方 API 包

  • org.apache.openjpa.abstractstore
  • org.apache.openjpa.ant
  • org.apache.openjpa.audit
  • org.apache.openjpa.conf
  • org.apache.openjpa.datacache
  • org.apache.openjpa.ee
  • org.apache.openjpa.enhance
  • org.apache.openjpa.event
  • org.apache.openjpa.instrumentation
  • org.apache.openjpa.instrumentation.jmx
  • org.apache.openjpa.jdbc.ant
  • org.apache.openjpa.jdbc.conf
  • org.apache.openjpa.jdbc.identifier
  • org.apache.openjpa.jdbc.kernel
  • org.apache.openjpa.jdbc.kernel.exps
  • org.apache.openjpa.jdbc.meta
  • org.apache.openjpa.jdbc.meta.strats
  • org.apache.openjpa.jdbc.schema
  • org.apache.openjpa.jdbc.sql
  • org.apache.openjpa.kernel
  • org.apache.openjpa.kernel.exps
  • org.apache.openjpa.kernel.jpql
  • org.apache.openjpa.lib.ant
  • org.apache.openjpa.lib.conf
  • org.apache.openjpa.lib.encryption
  • org.apache.openjpa.lib.graph
  • org.apache.openjpa.lib.identifier
  • org.apache.openjpa.lib.instrumentation
  • org.apache.openjpa.lib.jdbc
  • org.apache.openjpa.lib.log
  • org.apache.openjpa.lib.meta
  • org.apache.openjpa.lib.rop
  • org.apache.openjpa.lib.util
  • org.apache.openjpa.lib.util.concurrent
  • org.apache.openjpa.lib.util.svn
  • org.apache.openjpa.lib.xml
  • org.apache.openjpa.meta
  • org.apache.openjpa.persistence
  • org.apache.openjpa.persistence.criteria
  • org.apache.openjpa.persistence.jdbc
  • org.apache.openjpa.persistence.meta
  • org.apache.openjpa.persistence.osgi
  • org.apache.openjpa.persistence.query
  • org.apache.openjpa.persistence.util
  • org.apache.openjpa.persistence.validation
  • org.apache.openjpa.slice
  • org.apache.openjpa.slice.jdbc
  • org.apache.openjpa.util
  • org.apache.openjpa.validation
  • org.apache.openjpa.xmlstore

功能部件配置元素

可在 server.xml 文件中使用以下元素以配置 Java 持久性 API 2.0 功能部件:


用于指示主题类型的图标 参考主题



时间戳记图标 最近一次更新时间: Monday, 5 December 2016
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-libcore-mp&topic=rwlp_feature_jpa-2.0
文件名:rwlp_feature_jpa-2.0.html