JBoss.org Community Documentation

12.4.2. CMP Field Column Mapping

The relational mapping configuration of a CMP field is done in the jbosscmp-jdbc.xml file. The structure is similar to the ejb-jar.xml with an entity element that has cmp-field elements under it with the additional configuration details.

The following is shows the basic column name and data type mappings for the gangster bean.


The full content model of the cmp-field element of the jbosscmp-jdbc.xml is shown below.

The JBoss entity element content model

Figure 12.4. The JBoss entity element content model

A detailed description of each element follows: