Hello,
when I will save a "Project" object in my database I get this
error message.
-----------------------------------------------------------------------
Error while saving object: org.exolab.castor.jdo.PersistenceException:
SQL exception in the key generator: java.sql.SQLException: ERROR:
Relation "projects" does not exist
-----------------------------------------------------------------------
Before I saving this object, I set the attributes for "name" and
"SUPER_PROJECT".
The attribute "ID" should be calculate form Castor.
Part of the mapping file:
-----------------------------------------------------------------------
<!--/////////////////// Mapping for Project ////////////////////////-->
<class name="com.sourcepark.projects.Project" identity="id"
key-generator="MAX">
<map-to table="PROJECTS" xml="projects" />
<!--________________ID________________________-->
<field name="id" type="integer" >
<sql name="ID" type="integer"/>
<xml node="attribute"/>
</field>
<!--________________NAME______________________-->
<field name="name" type="string">
<sql name="NAME" type="char" dirty="check" />
<xml node="text" />
</field>
<!--________________SUPER_PROJECT________________________-->
<field name="superProjects" type="com.sourcepark.projects.Project"
collection="vector"
set-method="setSuperProjectsAsReference"
get-method="getSuperProjectsAsReference">
<sql name="SUPERPROJECT_ID" many-table="PROJECT_SUPERPROJECT"
many-key="PROJECT_ID" />
</field>
</class>
-----------------------------------------------------------------------
how can help me ?
Thanks
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev