I am modifying an existing Open Source application to support SAP DB
with the lastest Castor snapshot. This system is written against
Castor 0.9.5.3, so I had to change the database.xml file slightly for
0.9.6.
That said, Castor appears to be having some problems with entries
defined like so:
<field name="contentTypeDefinition"
type="org.infoglue.cms.entities.management.impl.simple.ContentTypeDefinitionImpl">
<sql name="contentTypeDefinitionId"/>
</field>
The class provided for the 'type' is an implementation of
org.infoglue.cms.entities.management.ContentTypeDefinition, which is
what the signature for getContentTypeDefinition() is written against,
for the object that is being mapped.
However, Castor complains that the return type of the bean
(ContentTypeDefinition) differs from that specified in the mapping
(ContentTypeDefinitionImpl). Why is this?! This seems to be a change
from 0.9.5.3, since the application runs just fine against that
version of Castor.
Insights? I'm all ears!! Thanks a ton.
p.s. I am a Castor newbie, 100% greenhorn.
--
Brice Ruth
Software Engineer, Madison WI