I'd say for the simple types that if the complex type is just an extension
of the simple types to add attributes and it can't find a binding then it should
unmarshall as the simple type.
Something like:
1) Real Complex type - error
2) Complex type extends simple - try to unmarshall as simple type if it can't find the
model class
3) Plain simple type - as now
Maybe you could add an option to the schema to enable the (2) processing
for backwards compatibility?
e.g.
SchemaBinding.setUnmarshalSimpleComplexTypeAsSimpleTypeWhenNoMapping(true);
Although, if the intention was really to map to a real type its going to be raised
as an IllegalArgumentException on the setter anyway.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991604#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...