I use xsd schema like :
<xsd:complexType name="TrxIdRs_Type">
<xsd:simpleContent>
<xsd:extension base="xsd:int">
<xsd:attribute ref="trxStatusCode" use="required"/>
<xsd:attribute ref="trxStatusDescr" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
meaning XML like :
<TrxIdRs trxStatusCode="1" trxStatusDescr="descr">
111000111
</TrxIdRs>
But Castor generate only BigDecimal type for this schema :
public abstract class TrxIdRs_Type implements java.io.Serializable {
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* internal content storage
*/
private java.math.BigDecimal _content;
/**
* Field _trxStatusCode.
*/
private java.lang.Integer _trxStatusCode;
Is there any other variants to write xsd or configure castor to have primitive type in generated bean?
No comments:
Post a Comment