I think another way of saying this is that I need the plugin to use the Venetian Blind design instead of the Salami Slice design pattern when using 1.6. How can this be configured?
-Dave On Fri, Mar 13, 2015 at 10:06 AM, David Hoffer <dhoff...@gmail.com> wrote: > We are upgrading our application that uses schemagen to generate XSD from > Java classes to use plugin version 1.6 and JDK8 (was 1.5 & JDK7). > > In some cases the new version generates schemas that use ref instead of a > direct reference to the type in the element definition. This causes > problems for our usage of the schema. How can I configure the plugin to > always use types? > > 1.5 generated schema: > > <xs:sequence> > ... > <xs:element name="sat" type="sat" minOccurs="0"/> > <xs:element name="satUuid" type="xs:string" minOccurs="0"/> > ... > </xs:sequence> > > <xs:complexType name="sat"> > <xs:sequence> > ... > </xs:sequence> > </xs:complexType> > > 1.6 generated schema: > > <xs:sequence> > ... > <xs:element ref="ns1:sat" minOccurs="0"/> > <xs:element name="satUuid" type="xs:string" minOccurs="0"/> > ... > </xs:sequence> > > <xs:complexType name="sat"> > <xs:sequence> > ... > </xs:sequence> > </xs:complexType> > > I need the schema to be like the 1.5 case but when using 1.6. > > -Dave >