For example, if you create a new bean that has no corresponding
database table, you can use the mapping editor to generate (for top-down maps)
the table and mapping based on the bean. Likewise, if a new table is imported,
you can generate (for bottom-up maps
1) a new enterprise bean
and mapping based on the table definition. When you create and map unmapped
elements, the editor automatically creates default corresponding objects and
maps, similar to what is done in the top-down and bottom-up mapping wizards.
This action helps you avoid the need to create entirely new mappings when
you make changes to beans or database tables:
- Open the mapping editor for the map.mapxmi that you need to update.
- From the menu, click one of the following options, depending on the direction
of the mapping:
- Mapping > Create and map database elements from EJB elements
- Mapping > Create and map EJB elements from database elements
- The appropriate bean or database elements are created and the mapping
is configured for the new elements.