Developing applications that use the Java Persistence API
次主題
Developing JPA 2.x applications for a Java EE environment
Containers in the application server can provide many of the necessary functions for the Java™ Persistence API (JPA) in a Java Enterprise Edition (Java EE) environment. The application server also provides JPA command tools to assist you with developing applications in a Java EE environment.Developing JPA 2.x applications for a Java SE environment
Prepare persistence applications to test outside of the application server container in a Java SE environment.Bean validation in JPA
Data validation is a common task that occurs in all layers of an application, including persistence. The Java Persistence API (JPA) provides support for the Bean Validation API so that data validation can be done at run time. This topic includes a usage scenario where bean validation is used in the JPA environment of a sample digital image gallery application.wsjpa properties
The extension properties of Java Persistence API (JPA) for WebSphere® Application Server can be specified with the openjpa or wsjpa prefix. This topic features the wsjpa properties.Criteria API
The Criteria API is an API for building queries with Java objects, as an alternative to building strings for Java Persistence Query Language (JPQL) queries.wsappid command
The Java Persistence API (JPA) specification supports an entity primary key to be made up of more than one column. In this case, the primary key is called a composite or compound primary key. Provide an ID class, which is specified by the @IdClass annotation, to manage a composite primary key. Use the identity tool for JPA to generate an ID class for entities that use composite primary keys.wsenhancer command
The entity enhancer tool for Java Persistence API (JPA) applications inserts bytecode into an entity class file that supports the JPA provider to manage the state of an entity. Use this command-line tool to enhance entities under the Java™ Persistence API (JPA) 2.0 specification provider, WSJPA/OpenJPA, for WebSphere Application Server.eclenhancer command
The entity enhancer tool for Java™ Persistence API (JPA) applications inserts bytecode into an entity class file that supports the JPA provider to manage the state of an entity. Use this command-line tool to enhance entities under the Java™ Persistence API (JPA) 2.1 specification provider, EclipseLink, for WebSphere Application Server.wsmapping command
The wsmapping tool is used to provide top-down mapping of the entity object model to the database relational model. You can use the wsmapping tool to create database tables.wsreversemapping command
The wsreversemapping tool generates persistent class definitions and metadata from a database schema.wsschema command
The schema tool can be used to view the database schema in XML form or match an XML schema to an existing database.wsdbgen command
The command supports utilization of the pureQuery feature in Java Persistence API (JPA) applications.ANT task WsJpaDBGenTask
The ANT task WsJpaDBGenTask provides an alternative to the wsdbgen command.Database generated version ID with WSJPA
Java Persistence API for WebSphere Application Server (WSJPA) has extended OpenJPA to work with database generated version IDs. These generated version fields, timestamp, or token, can be used to efficiently detect changes to a given row.目錄使用慣例
產品資訊中指向 app_server_root、profile_root 及其他目錄的參照,隱含特定的預設目錄位置。 請熟悉 WebSphere Application Server 中的使用慣例。Developing JPA 2.x applications for a Java EE environment
Containers in the application server can provide many of the necessary functions for the Java Persistence API (JPA) in a Java Enterprise Edition (Java EE) environment. The application server also provides JPA command tools to assist you with developing applications in a Java EE environment.Developing JPA 2.x applications for a Java SE environment
Prepare persistence applications to test outside of the application server container in a Java SE environment.Bean validation in JPA
Data validation is a common task that occurs in all layers of an application, including persistence. The Java Persistence API (JPA) provides support for the Bean Validation API so that data validation can be done at run time. This topic includes a usage scenario where bean validation is used in the JPA environment of a sample digital image gallery application.wsjpa properties
The extension properties of Java Persistence API (JPA) for WebSphere Application Server can be specified with the openjpa or wsjpa prefix. This topic features the wsjpa properties.Criteria API
The Criteria API is an API for building queries with Java objects, as an alternative to building strings for Java Persistence Query Language (JPQL) queries.wsappid command
The Java Persistence API (JPA) specification supports an entity primary key to be made up of more than one column. In this case, the primary key is called a composite or compound primary key. Provide an ID class, which is specified by the @IdClass annotation, to manage a composite primary key. Use the identity tool for JPA to generate an ID class for entities that use composite primary keys.wsenhancer command
The entity enhancer tool for Java Persistence API (JPA) applications inserts bytecode into an entity class file that supports the JPA provider to manage the state of an entity. Use this command-line tool to enhance entities under the Java™ Persistence API (JPA) 2.0 specification provider, WSJPA/OpenJPA, for WebSphere Application Server.eclenhancer command
The entity enhancer tool for Java™ Persistence API (JPA) applications inserts bytecode into an entity class file that supports the JPA provider to manage the state of an entity. Use this command-line tool to enhance entities under the Java™ Persistence API (JPA) 2.1 specification provider, EclipseLink, for WebSphere Application Server.wsmapping command
The wsmapping tool is used to provide top-down mapping of the entity object model to the database relational model. You can use the wsmapping tool to create database tables.wsreversemapping command
The wsreversemapping tool generates persistent class definitions and metadata from a database schema.wsschema command
The schema tool can be used to view the database schema in XML form or match an XML schema to an existing database.wsdbgen command
The command supports utilization of the pureQuery feature in Java Persistence API (JPA) applications.ANT task WsJpaDBGenTask
The ANT task WsJpaDBGenTask provides an alternative to the wsdbgen command.Database generated version ID with WSJPA
Java Persistence API for WebSphere Application Server (WSJPA) has extended OpenJPA to work with database generated version IDs. These generated version fields, timestamp, or token, can be used to efficiently detect changes to a given row.目錄使用慣例
產品資訊中指向 app_server_root、profile_root 及其他目錄的參照,隱含特定的預設目錄位置。 請熟悉 WebSphere Application Server 中的使用慣例。


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=container_jpa_developing
檔名:container_jpa_developing.html