You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run the pom and look at the generated class Wrapper.java, you'll see that all the properties are generated as lists of objects, not simple objects:
There are 3 xsd files in the project. If you replace the contents of test.xsd with either works1.xsd or works2.xsd, and rerun maven, you'll see that Wrapper.java is generated as expected:
I suspect having element 'b' appear twice under the Wrapper hierarchy is causing the issue, although as 'b' only appears under separate elements within a 'choice' construct I don't believe this should be happening. Worse though is that this seems to cause the other properties to be generated as lists as well.
BTW, wrapping seq1 and seq2 in complexTypes also resolves the problem, however this approach isn't possible in the actual code I am working with.
Any insight is appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
Please check this small project: https://github.com/sfrenkiel/basicstest. It contains this xsd:
If you run the pom and look at the generated class Wrapper.java, you'll see that all the properties are generated as lists of objects, not simple objects:
public class Wrapper {
...
There are 3 xsd files in the project. If you replace the contents of test.xsd with either works1.xsd or works2.xsd, and rerun maven, you'll see that Wrapper.java is generated as expected:
public class Wrapper {
...
I suspect having element 'b' appear twice under the Wrapper hierarchy is causing the issue, although as 'b' only appears under separate elements within a 'choice' construct I don't believe this should be happening. Worse though is that this seems to cause the other properties to be generated as lists as well.
BTW, wrapping seq1 and seq2 in complexTypes also resolves the problem, however this approach isn't possible in the actual code I am working with.
Any insight is appreciated. Thanks!
The text was updated successfully, but these errors were encountered: