Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 1.3
-
Fix Version/s: 1.3.4
-
Component/s: XML code generator
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
From the conversation in the castro dev mailing list:
I have another question today.
How can i handle a xsd polymorphism like described in
http://www.xml.com/pub/a/2003/10/29/derivation.html
I cannot change the xml schema, its designed one of our costumer.
The problem is that i can create a bas complexType A1 with child-elements B and C. And complexType A2 is extends complexType A1 and then i can overwrite its child-types and/or how many the child occur.
A1
B type="int" maxOccur="unbounded"
C type="string"
A2 extends A1
B type="date"
C type="int"
The problem for the source-generator is, that he generates a method for element A1.getB() returns int[] and for A2.getB() returns a date.
Any hints to resolve this problem? Can i use a binding file to resolve this?
Provide a test case for this - look at comments in pom.xml.