uCosminexus Application Server, Definition Reference Guide
The following table describes the configuration of persistence.xml:
| Tag name | Occurrence pattern | Description | |||
|---|---|---|---|---|---|
| <persistence> | Once | Indicates the root tag. | |||
| <persistence-unit> | 0 or more times | Defines the persistence unit. | |||
| <description> | 0 or once | Describes the persistence unit. | |||
| <provider> | 0 or once | Specifies the implementation class name of javax.persistence.spi.PersistenceProvider. | |||
| <jta-data-source> | 0 or once | Specifies the references for the data source corresponding to the JTA transaction. | |||
| <non-jta-data-source> | 0 or once | Specifies the references for the data source not corresponding to the JTA transaction. | |||
| <mapping-file> | 0 or more times | Specifies the O/R mapping file. | |||
| <jar-file> | 0 or more times | Codes a JAR file name containing the entity class, embeddable class, and mappedsuper class. | |||
| <class> | 0 or more times | Codes the entity class, embeddable class, and mappedsuper class. | |||
| <exclude-unlisted-classes> | 0 or once | Specifies the Persistence class. | |||
| <properties> | 0 or once | Defines the Cosminexus JPA Provider-specific properties. | |||
| <property> | 0 or more times | Defines various properties. | |||
For details about the respective tags, see 6.2.1 Details of persistence.xml.
All Rights Reserved. Copyright (C) 2012, 2015, Hitachi, Ltd.