1 Reply Latest reply on Oct 5, 2011 1:41 PM by jtahlborn

    Cannot convert Boolean data type to boolean using xjc

      I am trying to customize the data type of attribute present in generated Java class. The generated method isPresent() return boolean type where as setPresent(Boolean )
      takes Boolean object. I am trying to convert the argument type of setPresent() method to primitive boolean type using xjb file. But, I could find that working out.
      Could you please help me out, whether it's possible to customize data in this scenario.

      <xsd:element name="employee">
      <xsd:complexType mixed="true">
      <xsd:choice minOccurs="0" maxOccurs="1">
      <xsd:element ref="empInfo" />
      <xsd:attribute name="present" type=xsd:boolean" default="false" />

      Thanks in Advance