摘要: 异常1:not-null property references a null or transient value解决方法:将“一对多”关系中的“一”方,not-null设置为false http://blog.csdn.net/zdwzzu2006/article/details/75522341.Caused by: org.apache.cxf.binding.soap.SoapFault: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - s 阅读全文
posted @ 2014-04-11 16:12 ejllen 阅读(324) 评论(0) 推荐(0) 编辑
摘要: http://wenku.baidu.com/link?url=COs4iL4h_FXg52K6z31_Sb9ybfqgz0079QpTgLa2mYcJ7FEoTPTSPqe9HiUs82vPZprA9E12_K9bTWByyi-kY_AFCFze5YfChmZVr5HLMcS 阅读全文
posted @ 2014-04-11 11:02 ejllen 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 每个表可以有多个 UNIQUE 约束,但是每个表只能有一个 PRIMARY KEY 约束。http://www.w3school.com.cn/sql/sql_unique.asp另外相关:@OneToMany 阅读全文
posted @ 2014-04-11 11:00 ejllen 阅读(116) 评论(0) 推荐(0) 编辑
摘要: create table a ( id varchar(20) primary key, password varchar(20) not null )create table b ( id int identity(1,1) primary key, name varchar(50) not null, userId varchar(20), foreign key (userId) references a(id) on delete cascade ) 表B创建了外码userId 对应A的主码ID,声明了级联删除 测试数据: insert a values ('11',& 阅读全文
posted @ 2014-04-11 10:37 ejllen 阅读(1835) 评论(0) 推荐(0) 编辑