In my XSD, I have an xs:choice element that is transformed as a List of a new type by JAXB.
Using Hyperjaxb3, I'm trying to customize the name of the table associated to that new type, but I haven't been able to.
XSD:
<xs:element name="explicitDimension">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="fws:member"/>
</xs:choice>
<xs:attribute name="dimension" use="required" type="xs:NMTOKEN"/>
<xs:attribute name="hierarchy" use="optional" type="xs:anyURI"/>
<xs:attribute name="axis" use="optional" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="member" type="xs:NMTOKEN"/>
ExplicitDimension.java
public class ExplicitDimension implements Serializable, Equals, HashCode {
...
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected List<String> member;
protected transient List<ExplicitDimensionMemberItem> memberItems;
...
}
ExplicitDimensionMemberItem.java
@Entity(name = "ExplicitDimensionMemberItem")
@Table(name = "EXPLICIT_DIMENSION_MEMBER_IT_0")
@Inheritance(strategy = InheritanceType.JOINED)
public class ExplicitDimensionMemberItem implements Serializable, Item<String> {
....
}
How do I need to use bindings.xjb in order to change that EXPLICIT_DIMENSION_MEMBER_IT_0 to the value I need? I've been looking through the documentation and samples, but couldn't found any relevant example.
Hope this is my last question related to this. Thanks in advance.