[EMAIL PROTECTED] wrote: > > Keith, > > It is my understanding that each Java class > can use either a *Descriptor.java or a mapping.
No necessarily. If you want to modify a generated descriptor you can do the following: <class name="Foo" auto-complete="true"> ...changes... </class> With the auto-complete Castor will look for generated descriptors. Keep in mind however when making changes to the field descriptors, you'll have to use the *same* field name in your mapping file as it's specified in the generated descriptor or Castor won't be able to match it properly. For what Keith want's to do, he should be able to just do the following: <class name="MyFoo" extends="CastorGeneratedFoo"> ... </class> > I believe that if you specify a mapping for a particular > class then it will override any *Descriptor it will find in the classpath. Only if auto-complete is not used and your mapping for the same class, not an extended one. --Keith > > > -----Original Message----- > > From: Keith Koski [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, January 14, 2003 3:14 PM > > To: [EMAIL PROTECTED] > > Subject: [castor-dev] using SourceGenerator Descriptor > > classes AND a > > mapping file? > > > > > > i'd like to be able to utilize constraint facets in my > > XSD which the > > source generator puts into the Descriptor classes. > > but, i also want to be able to unmarshal a document > > into my business > > classes that extend the source generator classes. > > > > it is possible to mix this two modes of unmarshalling > > an XML document or > > is this a case of either/or? i was never able to get > > instances of my > > business objects when using the Descriptor framework > > even when i had a > > Descriptor class defined. perhaps i missed some other > > requirement? > > > > thanks, > > kjk > > > > ----------------------------------------------------------- > > If you wish to unsubscribe from this mailing, send mail to > > [EMAIL PROTECTED] with a subject of: > > unsubscribe castor-dev > > > > > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
