JPA更改新增操作报错identifier an instance of .... was altered from 58 to nuLL;

原因如下:

JPA更改新增操作报错identifier an instance of .... was altered from 58 to nuLL;

 

解决的办法是因为我前面的代码位置错误而导致更改一下边可,因为我用到的BeanUtils.copyProperties(sources,target)

一开始我是反过来导致的问题,后面过仔细勘察,才发现反了,一开始BeanUtils.copyProperties(put1,put)这样存在问题

正确的是BeanUtils.copyProperties(put,put1) ,下图是正确的,一下图为例

如图所示:

JPA更改新增操作报错identifier an instance of .... was altered from 58 to nuLL;