When generating CMP entity beans from database no Map.mapxmi is generated. There's also no editor to create Map.mapxmi
Map.mapxmi is required for CMP entities to work on Websphere.
This is a serious issue, because without CMP the plugin for Websphere application server is practically useless.
I believe the support for WebSphere-specific files for CMP is not fully implemented. I agree it would be useful to have
a mapxmi editor, but I am not a WebSphere expert, so I am not exactly sure what would be needed. Would it be possible to
use the regular XML editor to edit this file? What should this editor ideally do? Thanks in advance for your input.
The map.mapxmi file links entities from the deployment descriptor (ejb-jar.xml) to tables and columns from a
Schema.dbm is equivalent to the schema.dbschema file generated by NetBeans.So schema.dbm is also missing.
I supose it's possible to create these two files using a general purpose XML editor, however they should be validated
at build time. I don't think runtime errors because of invalid descriptors is something most programmers can live
Another point would be the practicality of creating the mappings manually. The map.mapxmi is not too complicated, but
it would require a lot of effort to write and change.
The schema.dbm is meant to be generated either from a database connection or from a visual model, again creating it
manually would be quite a chore.
I'd rather use BMP or simply JDBC, than creating CMP mappings manually.
Ideally there should be a wizard to create the schema.dbm from either db connection or a DDL file. The map.mapxmi
should be generated when using the the "New CMP Entity Beans from Database" wizard, afterwards manual edit would be
ok. The presense and validity of both files should be checked at build or deploy time.
An example map.mapxmi editor can be found on page 804 of Rational Application developer V7 guide
(http://www.redbooks.ibm.com/abstracts/sg247501.html). A trial version of RAD 7 is also available from IBM. Also
Eclipse may have similar capabilities.
Some additional info: