I changed some of our mapping to make usage of the "abstract"
capability of jibx.
So I have an abstract class and an abstract mapping
<mapping abstract="true" class="com.actualis.ActualisBO">
<!-- com.actualis.ActualisBO fields -->
<value name="sync_state" field="sync_state"/>
<value name="UID" field="UID"/>
</mapping>
And then in every my inherited classes, I need to have sync_state and UID.
<mapping name="Article" class="com.actualis.sage.Article"
extends="com.actualis.ActualisBO">
<structure map-as="com.actualis.ActualisBO"/>
<value name="AR_Ref" usage="optional" field="AR_Ref"/>
...
</mapping>
I was wondering, why is the structure map-as necessary? If there is no
<structure map-as...> what is the sense of the extends and abstract?
Shouldn't all the fields from the parent class be included by default?
Thanks,
Henri.
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users