On Tue, 11 Dec 2001, Michael Quigley wrote:

> > > Can anyone even get the following mapping.xml to be recognized as a
> valid
> > > class by Castor 0.9.3?
> > >
> > > <mapping>
> > >   <class name="com.quigley.dashboard.Account" identity="id"
> > > key-generator="IDENTITY">
> > >     <map-to table="ACCOUNT" />
> > >     <field name="id" type="string">
> > >       <sql name="ID" type="char" />
> > >     </field>
> > >   </class>
> > > </mapping>
> > >
> > > Is everyone on this list on vacation? Hasn't anyone run across any
> > > mapping.xml problems like this in their Castor work? Everything is
> working
> > > great for me, until I add a "key-generator" attribute to the <class>
> > > element of my mapping.xml. Once I add the attribute, something gets
> messed
> > > up and Castor no longer thinks it has a mapping for my class!
> >
> > Well I use key-generator="MAX" and I've got no problem. Not sure about
> > "IDENTITY" though.
> 
> Even key-generator="MAX" fails for me. In fact, if I merely add the
> attribute "key-generator" at all, Castor does not recognize my class
> definitions!

<class
name="au.com.telecash.model.BatchPayment" identity="reference" 
key-generator="IDENTITY">
...

thats from an old project, using 0.9.3, worked fine...  you've got the
table set up propertly dont you?

cheers
dim

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to