這個特性會啟用對於使用應用程式管理及儲存器管理的 JPA(寫入至「Java 持續性 API 2.0」規格)之應用程式的支援。這項支援建置在 Apache OpenJPA 之上,其延伸規格支援儲存器管理的程式設計模型。
啟用此特性
如果要啟用 Java Persistence API 2.0 特性,請將下列元素宣告新增至 server.xml 檔中的 featureManager 元素內:
<feature>jpa-2.0</feature>
這項特性所提供的標準 API 套件
-
javax.activation
-
javax.persistence
-
javax.persistence.criteria
-
javax.persistence.metamodel
-
javax.persistence.spi
-
javax.xml.bind
-
javax.xml.bind.annotation
-
javax.xml.bind.annotation.adapters
-
javax.xml.bind.attachment
-
javax.xml.bind.helpers
-
javax.xml.bind.util
這項特性所提供的協力廠商 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
這項特性啟用的特性
支援的 Java 版本
-
JavaSE-1.8
-
JavaSE-11.0
-
JavaSE-17.0
-
JavaSE-21.0
-
JavaSE-25.0
平台版本
-
javaee-6.0
啟用這項特性的特性
開發相依於這項特性的特性
如果您正在開發的特性相依於這個特性,請將下列項目包含在您特性資訊清單檔中的 Subsystem-Content 標頭內:
com.ibm.websphere.appserver.jpa-2.0; type="osgi.subsystem.feature"