使用jdk的xjc命令由schema文件生成相应的实体类

xjc D:\operate-process.xsd -d D:\workspace\wmsc\src\main\java -p com.yd.wmsc.util

 

operate-process.xsd

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="OperateProcess" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="OperateProcess" msdata:IsDataSet="true" msdata:Locale="en-US">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="FastOutbound">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="define" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:attribute name="code" type="xs:string" />
                  <xs:attribute name="opMode" type="xs:string" />
                  <xs:attribute name="wrhBillStatus" type="xs:string" />
                  <xs:attribute name="onhBillStatus" type="xs:string" />
                  <xs:attribute name="name" type="xs:string" />
                  <xs:attribute name="className" type="xs:string" />
                </xs:complexType>
              </xs:element>
              <xs:element name="notesExecuteOrder" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:attribute name="orders" type="xs:string" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>

 

posted @ 2017-12-20 17:25  tonggc1668  阅读(238)  评论(0)    收藏  举报