<composite-id name="id" class="com.anylinks.billreturn.BO.ExchangeBank$Id" unsaved-value="undefined">
//这里
//把com.anylinks.billreturn.BO.ExchangeBank$Id的hbm.xml中的东西复制过来
<key-property name="bankId" type="string">
<column name="BankID" length="9" not-null="true" unique="true" index="PK_EXCHANGEBANK"/>
</key-property>
<key-property name="currName" type="string">
<column name="CurrName" length="3" not-null="true"/>
</key-property>
</composite-id>
//这里
//把com.anylinks.billreturn.BO.ExchangeBank$Id的hbm.xml中的东西复制过来
<key-property name="bankId" type="string">
<column name="BankID" length="9" not-null="true" unique="true" index="PK_EXCHANGEBANK"/>
</key-property>
<key-property name="currName" type="string">
<column name="CurrName" length="3" not-null="true"/>
</key-property>
</composite-id>
解决方案 »
- Struts标签中有没有能实现对长文本能进行省略显示的标签?
- 请问:dom解析的子节点顺序何文件中节点的顺序一样吗
- 关于JDBC操作是否需要synchronized的问题?(分太少了 还请见谅!)
- 菜鸟学习JAVA日志1——线程
- POI操作Excel,如何让行与宽自动调整以适合最合适的高与宽?类似于它的宏:Cells.Select,Selection.Rows.AutoFit,Selection.Columns.Au
- 在JSP中,怎样才能在自定义函数中使用默认的out对象
- 高分求助:TOMCAT的使用问题!
- 【Struts 如何支持 动态表单 ?!】
- 现在做java程序员,前影怎么样?
- javabean转换成xml文件
- hibernate问题
- 急!!怎样把客户端输入的信息保存到数据库中?
的两个字段(复合主键),外键也要用两个?lz查查资料吧复合主键的问题很麻烦啊,不知lz为什么要用
你的ExchangeBank表的bankId外键引用ReturnOutMSG表的id是吧
<many-to-one
name="test"
class="com.anylinks.billreturn.BO.ReturnOutMSG"
update="false"
insert="false"
>
<column name="bankId" />
</many-to-one>