|
Is it possible to use the CastorJDO code to persist a Java object into a database without using CastorXML?
I have been able to successfully store objects using CastorXML (with the sourcegenerator and CastorJDO. However, one of our programmers has added methods to allow us to easily get out XML data into a Java object. Now I would like to persist that object into the database using only CastorJDO. My original mapping final contain Oracle key-generator statements such as:
<key-generator name="SEQUENCE" alias="INCIDENTSEQ"> <param name="sequence" value="IIMSDB.INSEQUENCE"/> <param name="trigger" value="true"/> </key-generator>
The log file states ‘unable to find FieldDescriptor for ‘key-generator’ in ClassDescriptor of mapping-root.
I get a very similar message for ‘class’ from the following line:
<class name="Incident" access="shared" identity="incidents_key"…/>
Is what I am trying to do possible, and if so, can someone give me a few tips on what I need to do differently if I am not using Castor XML?
Thanks in advance,
Dennis Brundage |
