should be mapped with insert="false" update="false"
来源:互联网 发布:淘宝清杂款衣服店铺 编辑:程序博客网 时间:2024/06/06 00:42
should be mapped with insert="false" update="false"
分类: Hibernate2012-01-11 09:51 4490人阅读 评论(0) 收藏 举报
insertuser
should be mapped with insert="false" update="false",如下:
<property name="vote_rid"/>
<property name="vote_point"/>
<property name="vote_postdate"/>
<property name="vote_enddate"/>
<property name="vote_uid"/>
<property name="vote_isend"/>
<many-to-one name="user" column="vote_uid"/>
可以看到vote_uid出现了两次,把最上面的那个去掉即可,因为两个属性不能对应一行。
<property name="vote_rid"/>
<property name="vote_point"/>
<property name="vote_postdate"/>
<property name="vote_enddate"/>
<property name="vote_uid"/>
<property name="vote_isend"/>
<many-to-one name="user" column="vote_uid"/>
可以看到vote_uid出现了两次,把最上面的那个去掉即可,因为两个属性不能对应一行。
0 0
- 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"
- HDU2156 分数矩阵【水题】【递推】
- php中的设计模式之--命令模式
- “Ceph浅析”系列之一——前言
- android 重启 adb 遇到 Make sure the plugin is properly configured
- 饿了么、百度、美团外卖,网上订餐成为白领用餐的新趋势
- should be mapped with insert="false" update="false"
- const和define
- 字符串形式十六进制数转换
- Linux 命令-mpstat -P ALL
- ORACLE DUMP 的用法
- HDU2046 骨牌铺方格
- Android技术——数据库(二):SQLite数据库的建立和维护
- LeetCode LRU Cache
- LNK4098: 默认库“MSVCRT”与其他库的使用冲突