This tags specifies a reference to an application-level entity cache. If the ejbgen:entity-cache-ref is not specified, a separate cache is used for each entity bean.
Class tag on an entity bean
@ejbgen:entity-cache-ref
concurrency-strategy="ConcurrencyOption"
name="CacheName"
[cache-between-transactions="True/False"]
[estimated-bean-size="ByteSize"]
concurrency-strategy
Required. Defines the concurrency strategy for the entity bean. Valid values are ReadOnly, Exclusive, and Database. When left unspecified, the default is Database.
name
Required. Names the application-level cache.
cache-between-transactions
Optional. Specifies whether to cache the persistent data of an entity bean across (between) transactions. When left unspecified, the default is false.
estimated-bean-size
Optional. Specifies the estimated average size of an instance of an entity bean, in bytes. When left unspecified, the default is 100.
The following rules apply to this tag's use: