I also want a stronger type when working with the ID and IDREF types.
I'm now using "idSymbolSpace" and it seems to work except that it doesn't
take <jxb:class implClass="..."/> into consideration.
My (simplified) scheme is:
<xs:complexType name="equipment-type">
<xs:annotation><xs:appinfo>
<jxb:class implClass="gti.conf.EquipmentType"/>
</xs:appinfo></xs:annotation>
<xs:attribute name="id" type="xs:ID">
<xs:annotation><xs:appinfo>
<xjc:idSymbolSpace name="equipment-type-space"/>
</xs:appinfo></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="equipment-entity">
<xs:sequence>
<xs:element name="equipmentType" type="xs:IDREF">
<xs:annotation><xs:appinfo>
<xjc:idSymbolSpace name="equipment-type-space"/>
</xs:appinfo></xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
In EquipmentEntityImpl.java the method
"public generated.gti.conf.EquipmentType getEquipmentType()" is generated.
I would expect that
"public gti.conf.EquipmentType getEquipmentType()" is generated.
Am I missing something here?
Kees Kuip
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net