12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setting Properties<br />

Table 16.2<br />

Property Type Default Description<br />

ejb.datasource java.lang.String N/A Default JDBC datasource to use in<br />

case no table-properties have been<br />

set. CMP 2.x only.<br />

ejb.truncateTableNa<br />

me<br />

Table Properties<br />

Entity properties for CMP 2.x (continued)<br />

java.lang.Boolean False If no table name is specified, CMP2.x<br />

engine will use the EJB name as the<br />

table name. EJB names can be more<br />

than 30 characters in length.<br />

Moreover, certain databases have a<br />

restriction on the table length to be 30<br />

characters or less. This property is<br />

used to force the table name to be<br />

truncated to be 30 characters or less.<br />

CMP 2.x only.<br />

ejb.eagerLoad java.lang.Boolean False eager-loads the entire row and keeps<br />

the data in the transactional cache.<br />

After loading, all database resources<br />

are released. Subsequent getters<br />

could get data in cache and not<br />

having to require any more database<br />

resources. CMP 2.x only.<br />

The following properties apply to CMP 2.x only. If you are migrating from CMP 1.1 to<br />

CMP 2.x, you must update your CMP properties. CMP 1.1 properties were formerly of<br />

the format ejb., and were all specified in the portion of the<br />

deployment descriptor. With CMP 2.x, BES adds Table and Column Properties, which<br />

manage persistence. Refer to these properties below to see where migration issues<br />

may appear.<br />

Chapter 16: Using BES Properties for CMP 2.x 149

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!