Mapping CMP Fields Manually

In most cases, when you create entity beans from tables, you probably want to map fields automatically. However, you can also build up your mappings from scratch (e.g. when the entity beans don't have a corresponding schema object).

To map fields manually:
  1. In the Navigator, right-click orion-ejb-jar.xml and chose Properties. (You can also right click on a CMP entity bean and choose Edit CMP Mappings.) The OC4J EJB Deployment Descriptor dialog opens.
  2. Expand the node for the entity bean you want to map and then expand CMP Field Mappings.
  3. Use the New and Delete buttons to create and remove mappings manually.

Related topics

About Attribute Mappings
Mapping Existing Entity Beans to Existing Tables
Mapping Relationships to Existing Tables