我已经通过以下方式定义了我的绑定
<jaxb:bindings node="xs:complexType[@name='Parent']">
...........
<jaxb:bindings node="xs:element[@name='children']">
<hj:one-to-many name="children" fetch="EAGER">
<orm:order-column name="CHILD_PRIMARY_KEY"/>
<orm:join-column name="PARENT_PRIMARY_KEY"/>
</hj:one-to-many>
</jaxb:bindings>
</jaxb:bindings>
But the generated class has OrderColumn annotation missing.
i.e
@OneToMany(targetEntity = Children.class, cascade = {
CascadeType.ALL
}, fetch = FetchType.EAGER)
@JoinColumn(name = "PARENT_PRIMARY_KEY")
public List<Children> getChildren() {
if (Childrens== null) {
childrens= new ArrayList<Children>();
}
return this.childrens;
}
我期待带有 OneToMany 和 JoinColumn 的 OrderColumn 注释。但它似乎不存在,请有人帮忙看看我是否在这里遗漏了什么?