should be mapped with insert="false" update="false"
来源:互联网 发布:excel多表数据合计 编辑:程序博客网 时间:2024/05/16 10:31
<property name="ab" type="java.lang.String"></property>
<many-to-one name="nation" class="entity.Nation" column="ab"></many-to-one>
可以看到column对应ab出现了两次,把最上面的那个property去掉即可,因为同一个列不能映射2次。这样做有一个问题就是,通过操作这个对象的时候,这个ab属性会消失。
或者改下面<many-to-one name="nation" class="entity.Nation" column="ab" insert="false" update="false"></many-to-one>,推荐这个
- should be mapped with insert="false" update="false"
- should be mapped with insert="false" update="false"
- should be mapped with insert="false" update="false"
- should be mapped with insert="false" update="false
- (should be mapped with insert="false" update="false")
- should be mapped with insert="false" update="false"
- should be mapped with insert="false" update="false"
- Hibernate中should be mapped with insert="false" update="false"错误
- Hibernate BeanCreationException 异常错误(should be mapped with insert="false" update="false")
- Repeated column in mapping for entity: .... should be mapped with insert="false" update="false"
- Repeated column in mapping for entity:(should be mapped with insert="false" update="false")
- column: xxxxxx_ID (should be mapped with insert="false" update="false")
- Repeated column in mapping for entity:should be mapped with insert="false" update="false"
- hibernate column should be mapped with insert="false" update="false" 错误原因
- Repeated column in mapping for entity:should be mapped with insert="false" update="false"
- Repeated column in mapping for entity:(should be mapped with insert="false" update="false")
- hibernate映射文件出现should be mapped with insert="false" update="false"
- hibernate异常-should be mapped with insert="false" update="false"
- 初级LINUX命令行
- struts1 中DispatchAction 与action 的区别,以及DispatchAction的用法含义
- 60分钟企业经营战略
- MFC的多线程编程及信号量应用
- linux学习 问题 列表
- should be mapped with insert="false" update="false"
- 移植原生Android2.3之 - Camera Preview过程
- DSP做的modbus rtu 主从站协议
- riyu
- 面向对象设计的优点
- FFF Warm Up Contest 13 - NWERC 2011 [iSea]
- C 语言中的控制结构
- hibernate的延迟加载及其与session关闭的矛盾
- “应用程序配置不正确,程序无法启动” 解决办法(vc2008 sp1)