I need to declare a list in my xsd file . Not sure what changes do I need to make. I tried using simple type but the required type is not getting generated.
I need my pojo to have the datatype as -
@XmlElement(name = "Journeys", required = true)
protected List<LoyaltyJourneyIdentifier> journeys = new ArrayList<LoyaltyJourneyIdentifier>();
My current xsd
<xs:complexType name="AccountLoyaltyDetail">
<xs:sequence>
<xs:element name="OperatingCompany" type="ns:OperatingCompanyType"
minOccurs="0" />
<xs:element name="Journeys" type="ns:LoyaltyJourneyIdentifier" />
<xs:element name="Segments" type="ns:LoyaltySegmentIdentifier" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="LoyaltyJourneyIdentifier">
<xs:sequence>
<xs:element name="JourneyIdentifierId" type="xs:string" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Free form text to be echoed back in the reply.
Used to match requests and replies.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType
> currently the pojo is generated as -
@XmlElement(name = "Journeys", required = true)
protected LoyaltyJourneyIdentifier journeys;
Please let me know what changes do I need to make