EJBDEPLOY relationships – troubleshooting tips
This article provides troubleshooting information for EJBDEPLOY problems.
The converter that is defined for the primary key is not invoked on its foreign key value
The mapping for primary key fields to database columns may use a converter to transform the key values. If a container-managed persistence (CMP) bean uses a converter to map its primary key, and that bean has a relationship where the bean at the other end holds a foreign key, the mapping for the foreign key will not use the converter.
The following errors might occur, indicating that the converter defined for the primary key is not invoked on its foreign key value. During the run of the ejbDeploy command , you receive the following message
During run time, the application does not find the CMP bean at the other end of the relationship.No type mapping defined for Java datatype1 to Database datatype2To work around this limitation, define your own foreign key in the database table, and create a mapping that uses the same converter as defined for the primary key on the enterprise beans at the other end of its relationship.
Related concepts
welc6toptroubleshooting.html Related tasks
Assembling EJB modules