The correct way to do that map is like this: <class name="myapp.JDOData" identity="id secondID"> It can be useful to example the examples and test cases for how to map classes with Castor. (The webCVS is a good technique. You can find them at http://virtuals.intalio.com/cgi-bin/cvsweb.cgi/castor/src/tests/jdo/?cvsroot=castor or http://virtuals.intalio.com/cgi-bin/cvsweb.cgi/castor/src/examples/jdo/?cvsroot=castor as well.
--- tanhr <[EMAIL PROTECTED]> wrote: > in mapping.xml > if my table have multi-primary key > how to write at the 2nd line > <class name="myapp.JDOData" identity="id"> > ====> > <class name="myapp.JDOData" identity="id" identity="secondID"> > right or not ? > thank u > > > <mapping> > <class name="myapp.JDOData" identity="id"> > <description>data definition</description> > <map-to table="JDO" xml="iscd" /> > <field name="id" type="string"> > <sql name="id" type="char" /> > <xml name="id" node="element"/> > </field> > <field name="name" type="string"> > <sql name="name" type="char" /> > <xml name="name" node="element" /> > </field> > </class> > > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > ===== Virtually, | "Must you shout too?" Ned Wolpert | -Dante [EMAIL PROTECTED] | _________________/ "Who watches the watchmen?" 4e75 -Juvenal, 120 AD -- Place your commercial here -- fnord __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
