This article provides troubleshooting information for EJBDEPLOY problems.
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.
No type mapping defined for Java datatype1 to Database datatype2During run time, the application does not find the CMP bean at the other end of the relationship.
To 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.