Hitachi

uCosminexus Application Server Compatibility Guide


9.18.1 Defining the cache functionality of the entity objects

You define the cache functionality of the entity objects provided with Cosminexus JPA Provider in the <property> tag of persistence.xml. The following table describes the definition of the cache functionality of the entity objects in persistence.xml.

Table 9‒26: Definition of the cache functionality of the entity objects in persistence.xml

Specified properties

Settings

cosminexus.jpa.cache.size.ENTITY

Specify the cache size for caching the entity.

cosminexus.jpa.cache.size.default

Specify the default cache size for caching the entity.

cosminexus.jpa.cache.type.ENTITY

Specify the cache type of the entity.

cosminexus.jpa.cache.type.default

Specify the default cache type of the entity.

cosminexus.jpa.target-database

Specify the name of the database to be connected to.

For details on tags, see 13.2.2 Cosminexus JPA Provider-specific properties that can be specified in the <property> tag.

Reference note

The properties described here are properties unique to Cosminexus JPA Provider. In persistence.xml, you can specify other properties defined in the JPA specifications. However, in Cosminexus JPA Provider, you cannot use properties beginning with javax that are defined in the JPA specifications.