Exception:xxx (should be mapped with insert="false" update="false")
当你在映射文件中重复定义 么个字段的时候,就会有这个异常。我出现在many-to-one 中。
原因是:我配 1对1 外键双向关联的时候,属性ID重复。因为hibernate 将hibernate.hbm2ddl.auto=update 这样设置,会检查数据库字段,今天添加。。。,但你做外键关联的时候,你设置了个字段,那么就会强制你关闭这个。
<class name="com.home.entity.User" lazy="false" table="USER">
<id name="userId" column="UserId">
<generator class="uuid.hex" />
</id>
<property name="userName" column="UserName"/>
<property name="passWord" column="PassWord"/>
<many-to-one name="timesheet" class="com.home.timesheet.entity.TimesheetVOImpl" cascade="all">
<!-- 这里重复 -->
<column name="UserId"/>
</many-to-one>
</class>
分享到:
相关推荐
* This update can not be removed after it is installed.* You will need the original Delphi 7 installation CD available to install this update.* To install this update from the CD, insert the CD, and ...
MemoryMappedFile 使用 C# 内存中分配一大块地址. 前边分配一个用与共同配置用 后边N个结构体 for循环建 一般用到此问题,两本程序 一个读一个写 循环读写 ----2015/09/24 Lyndon 上海----
基于.NET4.0的MemoryMappedFile实现共享内存通信 共享内存通信可以解决跨线程、跨进程、跨EXE之间通信的问题 对于需要传输图片等引用类数据,可以通过序列化和反序列化配合共享内存实现跨进程(跨EXE)通信 共享...
System Requirements 短小精悍的XP下虚拟光驱工具 =================== - Windows XP Home or Windows XP Professional ... UNC naming conventions should not be used, however mapped network drives should be OK.
利用Memory Mapped File实践A,B跨程序的数据交换
有时struts资源文件添加中文保存时会eclipse出现Some characters cannot be mapped using 'ISO-8859-1' character encoding错误不能保存 解决办法
NULL 博文链接:https://605113068.iteye.com/blog/1727088
KEGG数据库的使用说明.pdf
MDB: A Memory-Mapped Database and Backend for OpenLDAP
Unlike with the global CMVN, for this sample feature stream the overall shape of the feature stream distribution is approximately mapped to a standard normal distribution. ...
Additionally, function keys can be mapped to commands by the user, and the mouse can be used. Vim runs under MS-Windows (NT, 2000, XP, Vista, 7, 8, 10), Macintosh, VMS and almost all flavours of ...
可修改凯立德内部NaviConfig.dll文件,即改即用.
Contents Module Overview 1 Lesson 1: Memory 3 Lesson 2: I/O 73 Lesson 3: CPU 111 ... It should be pointed out that SQL Server was linked using the /LAREGEADDRESSAWARE flag and can leverage ...
based architecture for a product line and how to express this architecture as a UML platform-independent model that can then be mapped to a platform-specific model. <br>Key topics include: <br>...
While our approach can be applied to any camera configuration, we address here the most general problem of a monocular camera, with its well-known scale ambiguity. We also propose a novel IMU ...
(4) 该列是否作为生成 insert语句的一个列 boolean updatable() default true; (5) 该列是否作为生成 update语句的一个列 String columnDefinition() default ""; (6) 默认值 String table() default ""; (7) ...
Regsvr32.exe注册控件的具体用法
Memory-Mapped Files for Qualcomm Brew By Ray Rischpater
前几天在网上下载一个struts2的helloword的例子,那个作者也真够缺德的,搞个错误的程序,害得我查了一天的程序错误。 最后发现竟然是struts.xml被写成啦sturts.xml。 碰见这样的问题先鄙视下提供例子的作者, ...