user manual

174 BES Developers Guide
Setting Properties
Table Properties
The following properties apply to CMP 2.x only. If you are migrating from CMP
1.1 to CMP 2.x, you must update your CMP properties. CMP 1.1 properties
were formerly of the format ejb.<property-name>, and were all specified in the
<entity> portion of the deployment descriptor. With CMP 2.x, BES adds Table
ejb.datasource java.lang.String N/A Default JDBC datasource to
use in case no table-properties
have been set. CMP 2.x only.
ejb.truncateTableNa
me
java.lang.Boolean False If no table name is specified,
CMP2.x engine will use the
EJB name as the table name.
EJB names can be more than
30 characters in length.
Moreover, certain databases
have a restriction on the table
length to be 30 characters or
less. This property is used to
force the table name to be
truncated to be 30 characters
or less. CMP 2.x only.
ejb.eagerLoad java.lang.Boolean False eager-loads the entire row and
keeps the data in the
transactional cache. After
loading, all database resources
are released. Subsequent
getters could get data in cache
and not having to require any
more database resources.
CMP 2.x only.
Property Type Default Description