Sebastian Kanthak wrote:
>
> Hi,
>
> is it somehow possible to declare a mapping for an abstract class in my
> mapping.xml file? When reading this mapping, castor complains that he
> cannot find a public noargs consturctor. However, there is one.
We're working on a patch. In the meantime, please just copy and paste
your field mappings from the abstract class mapping into the contrete
class mapping. And comment out
the abstract class mapping.
This is a limitation of sharing the MappingLoader with Castor JDO, as
they do
not allow abstract classes, but Castor XML does. Once we get it resolved
we'll let you know.
>
> A more elegant solution would be, to define another attribute
> "abstract" in the mapping.xml schema, to let castor know, that it is ok,
> that a class is not constructable.
This might be a resonable approach. I've submitted a patch to the JDO
team for
review.
>
> As I have to (un)marshal an existing class library to/from xml, it's an
> abosulte need for me to have abstract classes supported somehow. Is there
> any chance that you will add support, perhaps similar to the way I
> proposed, or do you have other plans.
Yes, absolutely. Actually, I was under the impression this was already
fixed. But apparently it's not. We'll have it cleaned up ASAP.
Thanks,
--Keith
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev