attempted to assign id from null one-to-one property

attempted to assign id from null one-to-one property [com.zfounder.custom.crm.model.CustomerInvestmentInfo.customer];

nested exception is org.hibernate.id.IdentifierGenerationException:

     attempted to assign id from null one-to-one property [com.zfounder.custom.crm.model.CustomerInvestmentInfo.customer]

 

保存出错

使用

     saveOrUpdate进行保存

 

 成功

posted @ 2017-11-27 10:20  Kapa  阅读(581)  评论(0编辑  收藏  举报