Hi, before all the words, excuse me for my poor english. Here is the thing: i have class A whit some common fields, and class B that extends that class (A) with other common fields (different from A); both of them only for unmarshalling from XML documents. I want to unmarshall class B from the XML, but when doing that, only the fields corresponding to that subclass are unmarshalled... Here is an example of my class structures and binding definitions
public class A implemets serializable{ private String pepe; private String lala; ... } public class B extends A{ private String name; private int num; } Now, with the binding, I have already try a lot of combinations using "extends", "abstract", and others (even the "create-type" for the Class A binding to create Class B instead)... but, when unmarshalling, only one class is created with only and ONLY his particular atributes. Here is the basic binding for each class (the real one is pretty much larger, here i only use an example): <mapping name="classA" class="mypackage.A" flexible="true" odered="false> <value name="go" field="pepe"/> <value name="two" field="lala"/> </mapping> <mapping name="classB" class="mypackage.A" flexible="true" odered="false> <value name="exam" field="name"/> <value name="exampel" field="num" deserializer="myPackage.deserializeInt/> </mapping> At this point, i have already tried making mapping definition for class A abstract="true" and use "extends" on mapping definitions for class B, witht that i get an object of class B created with only "name" and "num" atributes complete, but null for "pepe" y "lala"... Well, that´s it, I hope someone could help me because i have been fighting with this for days. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users