Brent , thanks for your answer.
When I try to split the configuration file into several files.  As table
CCP_USER has nothing to do with the Relationship,  so I put the setting for
table CCP_USER into a single file, then It works properly.
<Table tableName="CCP_USER" typeName="User">
       <Column columnName="USER_ID" propertyName="userId"
primaryKey="true"/>
       <Column columnName="PASSWORD" propertyName="password"/>
       <Column columnName="NAME" propertyName="name"/>
       <Column columnName="AVAILABLE"
propertyName="available"/>
   </Table>
It seems that the 'Table' element for declaring a table can not exist with
the 'Relationship' element in one configuration file at the same time if the
table has nothing to do with the relationship. Following setting will cause
a
problem.

<Table tableName="tableA">
....
</Table>

<Relationship name="rela" primaryKeyTable="tableB" foreignKeyTable="tableC"
many="true">
     <KeyPair primaryKeyColumn="tableB_id" foreignKeyColumn="tableC_id"/>
</Relationship>

Anyone has met the same problem?

Reply via email to