30.4.1. Application with Entity Beans CMP 1.1
The standard deployment descriptor must be updated for applications
deployed in previous versions of JOnAS using entity beans that have
container-managed persistence CMP 1.1. For such entity beans, a
with value
must be added. For
example a deployment descriptor that looks like the following:
<persistence-type>container</persistence-type>
<cmp-field>
<field-name>fieldOne</field-name>
</cmp-field>
<cmp-field>
<field-name>fieldTwo</field-name>
</cmp-field> |
must be changed as follows:
<persistence-type>container</persistence-type>
<cmp-version>1.x</cmp-version>
<cmp-field>
<field-name>fieldOne</field-name>
</cmp-field>
<cmp-field>
<field-name>fieldTwo</field-name>
</cmp-field> |
The EJB 2.0 specification states that the default value of the
<cmp-version> tag is 2.x.