Hello,

I'm trying to get working a mapping file where I have several levels of
mapping inheritence corresponding to a java class hierarchy.

Pseudo code & mapping for brevity :

class Parent { String identifier; }
class Child extends Parent { String text; }
class Client { Child child; }

<mapping for Parent, defines identifier value, with ident="def">
<mapping for Child, defines text value, inherits parent mapping >
<mapping for Client, defines child value, with ident="ref">

I can get the above working if I place the identifier value xml element in
Child mapping, but I can't make it work if the identifier value xml element
is in Parent mapping.

Please note that the mapping, with inheritence enabled, works fine without
adding the identifier need.

Could you please tell me if there is something wrong with my approach, or if
there is a limitation ?
I could live with the duplication of the id in all child mappings, but if
there is a better way to do it ...

Thanks in advance,

-- 
Laurent Petit
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to