Hi,
I would like to use abstract mapping to map the inheritance structure of
the following classes:
class Vehicle {
private String name;
private double fuelLoad;
}
class AirVehicle extends Vehicle {
}
class TrackVehicle extends Vehicle {
private int turnRadius;
}
When using abstract mapping, <structure map-as> expected all mapping in
the same sequence as the abstract class.
So it would map to the following XML:
<airvehicle>
<name>A-1</name>
<fuelload>100</fuelload>
</airvehicle>
<trackvehicle>
<name>T-1</name>
<fuelload>200</fuelload>
<turnradius>20</turnradius>
</trackvehicle>
However, what if I want track vehicle structure to be like this:
<trackvehicle>
<name>T-1</name>
<turnradius>20</turnradius>
<fuelload>200</fuelload>
</trackvehicle>
Is it possible to use abstract mapping for this scenario?
Regards,
Vairoj
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users