首页 > 技术文章 > attempted to assign id from null one-to-one property

liaohongbin 2017-11-27 10:20 原文

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进行保存

 

 成功

推荐阅读