s2sh遇到的问题

一:ids for this class must be manually assigned before calling save()

"类名.hbm.xml"映射文件中<Generator>属性设成"native"

 

二: not-null property references a null or transient value: pojo.TBumen.colName;

将映射文件中的<column>标签中的not-null="true"属性去掉

 

 

 

 

posted on 2014-06-03 15:59  时光让我遇到你  阅读(121)  评论(0编辑  收藏  举报

导航