本文介绍了订单栏似乎不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经通过以下方式定义了绑定
I have defined my bindings in the following way
<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批注.但这似乎不存在,请问我是否想念这里的东西吗?
I am expecting OrderColumn annotation with OneToMany and JoinColumn. But it does not seem to be there, please can some one help whether i am missing something here?
推荐答案
您应将org\jvnet\hyperjaxb3\ejb\plugin\custom\applicationContext.xml
移到org\jvnet\hyperjaxb3\ejb\jpa2\plugin\custom\applicationContext.xml
.
这篇关于订单栏似乎不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!