This subsection describes the Cosminexus JPA Provider-specific properties specified in the <property> tag of persistence.xml.
Cosminexus JPA Provider does not have properties that can be specified as arguments for createEntityManager() of EntityManagerFactory. Note that even if the attribute values of the persistence.xml file properties are numeric, you make sure that the value is enclosed in quotation marks (double quotations or single quotations).
The following is the description related to the Cosminexus JPA Provider-specific properties:
You specify these properties in the <property> tag of the persistence.xml file.
If a value outside the specifiable range is set for a property, an exception occurs during the deployment. Also, the value is case sensitive.
The following table describes the Cosminexus JPA Provider-specific properties:
Table 6-5 Cosminexus JPA Provider-specific properties
Property name | Contents | Specifiable value | Default |
---|---|---|---|
cosminexus.jpa.cache.size.<ENTITY> | Specify the initial size to be set for the entity cache specified in <ENTITY>. If a cache type is Full, set the initial size for the entity cache. If a cache type is HardWeak or SoftWeak, set the maximum size for the entity cache. Specify the cache size using the maximum ID count (record count) of the entities invoked in all as a standard. | 0 to 2147483647 | 1000 |
cosminexus.jpa.cache.size.default | Specify the default cache size used when the entity is cached. If a cache type is Full, set the initial size for the entity cache. If a cache type is HardWeak or SoftWeak, set the maximum size for the entity cache. Specify the cache size using the maximum ID count (record count) of the entities invoked in all as a standard. | 0 to 2147483647 | 1000 |
cosminexus.jpa.cache.type.<ENTITY> | Specify the entity cache type specified in <ENTITY>. | You can specify the following strings:
| SoftWeak |
cosminexus.jpa.cache.type.default | Specify the default cache type. | You can specify the following strings:
| SoftWeak |
cosminexus.jpa.target-database | Specify the name of a database you want to connect to. To classify the database-specific processing, the class implementing the database-specific part is read according to the specified value. If Auto is specified, the database is automatically identified from the connection information. Normally, Hitachi recommends you to specify the name of the database without using Auto. | The following strings can be specified:
| Auto |