jb cazaux wrote:

I m trying to marshall an object that extends another one. The pb is the ID
field. If i write myself the mapping it works OK. But if i try to generate
it from xdoclet i ve got the following pb :
the ID field is only described in the "mother class" and not in the subclass
(because the setter and getter of the ID field are in the mother class).

So i have to override the getter and setter in the subclass and add the
xdoclet tag, or add myself the lines
<field name="id" type="integer">
</field>

in my mapping file.

It is not really elegant so, have u got any idea ?

JB,

This looks like it might be a bug in XDoclet, but without testing it I won't know for sure. The good news is that a good friend of mine is a committer for XDoclet so if we create a patch for this I might be able to get it committed.

Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\\"F9E<G)E=\\$\\!F<FEI+F-O;0\\`\\`");'


The Castor Project
http://www.castor.org/

Apache Geronimo
http://incubator.apache.org/projects/geronimo.html



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

Reply via email to