Keith Koski wrote:
>
> Keith Visco wrote:
>
> >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.
> >
> it seems that if a mapping file is used at all, the Descriptors are
> never instantiated. is this a relatively new feature? i.e. after
> 12/13/2002. if not, there must be something wrong that i can not see.
My test case is working for me. Make sure you compiled the *Descriptor
files.
>
> also, if i add auto-complete, my marshalled document has elements that
> are not valid in the schema definition. e.g. 'valid="true"'. seems like
> the only way to not have those undesirable fields is to not use the
> auto-complete attribute in the mapping file.
Yes, unfortunately auto-complete with pick up the isValid method, you'll
need to mark
valid as transient.
<class name="Foo" auto-complete="true">
<field name="valid" type="boolean" transient=true"/>
</class>
>
> sure seems like descriptors and extended objects are mutually exclusive!
Not necessarily, as I mentioned in my previous post.
> i've included my example code. ideally, the content in the marshalled
> document will be same as in the file node.xml, disregarding the DOCTYPE
> node and ignoring xml ns.
I'll run your test case here and see what the problem might be.
--Keith
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev