C M P   2 . 0  
Tag Name 
Description 
Required 
list cache max  This specifies the number of read lists that can be tracked by  No, default is 
this entity. This option is discussed in Chapter 6 of the 
1000 
JBossCMP Documentation. 
table name 
This is the name of the table that will hold data for this 
No, default is 
entity. Each entity instance will be stored in one row of this 
ejb name 
table. 
In the cmp field element, you can control the name and datatype of the column. A cmp field 
can also be mapped to several columns, and this is discussed in Chapter 3 of the JBossCMP 
Documentation.  A detailed description of each element is shown in Table 9 2. 
Table 9 2, cmp field Tags 
Tag Name 
Description 
Required 
field name 
This is the name of the cmp field that is being configured. It  Yes 
must match the name of a cmp field declared for this entity 
in the ejb jar.xml file. 
column name 
This is the name of the column to which the cmp field is 
No, default is 
mapped. 
field name 
not null 
If this empty element is present, JBossCMP will add NOT 
No, default for 
NULL to the end of the column declaration when 
primary key 
automatically creating the table for this entity. 
fields and 
primitives is 
not null 
jdbc type 
This is the JDBC type that is used when setting parameters in  Only required if 
a JDBC PreparedStatement or loading data from a JDBC 
sql type is 
ResultSet. The valid types are defined in java.sql.Types. 
specified, default 
is based on 
datasource 
mapping 
sql type 
This is the SQL type that is used in create table statements 
Only required if 
for this field. Valid sql types are only limited by your 
jdbc type is 
database vendor. 
specified, default 
is based on 
datasource 
mapping 
87






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

best web hosting

 

Our partners: PHP: Hypertext Preprocessor Cheap Web Hosting JSP Web Hosting Ontario Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Java Hosting Cheapest Hosting

Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved