Server User Manual

Table Of Contents
82 Developing Applications for J2EE Servers
Container-managed persistence (CMP) 1.1 and 2.0 in WebSphere 5.x
To change the default CMP mapping behavior such as the Java to database type
mappings,
1 Choose Enterprise|Configure Servers.
2 Select WebSphere Application Server 5.x in the list of application servers.
3 Click the Custom button.
4 Click the CMP Mapping button.
5 Make your changes in the CMP Mapping Settings dialog box that appears:
6 Click OK.
These are your options:
Default Java To Data Type Mappings: This list is used if JBuilder is unable to
resolve the database schema type for a CMP field. This could happen if the JDBC
driver fails to report a type for a database column or if the corresponding column (as
defined in the CMP field mapping) is missing.
Java Type Aliases: This list is used to translate between actual Java types in the
bean and types defined in IBM database type mapping files.
Data Type Aliases: This list is used to translate between database vendor types (as
reported by the JDBC driver) and types defined in IBM database type mapping files.