I am getting the following error when I create an object:
WARNING: CORE3283: stderr: org.exolab.castor.jdo.PersistenceException:
Cannot create object of type org.usiis.struts.CommentForm with null
identity field and no key generator
WARNING: CORE3283: stderr: at
org.exolab.castor.jdo.engine.SQLEngine.create
....
I have defined an identity field for this object, as well as a sequence
generator:
<key-generator name="PAT_COMMENTS_SEQ" alias="PAT_COMMENTS_SEQ">
<param name="sequence" value="www_patient_comments_seq"/>
</key-generator>
<class name="org.usiis.struts.CommentForm" identity="patCommentId"
key-generator="PAT_COMMENTS_SEQ">
<map-to table="WWW_PATIENT_COMMENTS"/>
<field name="patCommentId" type="integer"><sql
name="pat_comment_id" type="integer"/></field>
.....
</class>
Any ideas as to what I'm doing wrong?
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev