Monday, April 11, 2016

EJB 2.1 Database Mapping - CMS Project Dialog

1) Open the ejb-jar.xml file
    Select the ProjectInvolmenet bean
    Create new CMP field and save
    This will modify the ProjectInvolvement and ProjectInvolvementBean classes

2) Change the IDE to Data perspective and open data models
    Select ProjectInvolvement in the dbo,
    Right click and select 'Add Data Object' and 'Column'
    Insert the Name and data type

3) Open the Map.mapxmi
     Select the ProjectInvolvement from the Top Left Enterprise Beans Section
     Expand the node and select new column added
     select 'Create and map database elements from EJB elements.

    This will create and map Enterprise bean property with the tables
     
    
   

No comments:

Post a Comment