开发者

Error:SingleFieldIdentity

开发者 https://www.devze.com 2023-03-05 12:58 出处:网络
Can anybody please tell me the cause of this error:-- A开发者_Go百科n object of class \"entity.pendingRequest\" uses SingleFieldIdentity using the field \"empId\" yet this field has not had its value

Can anybody please tell me the cause of this error:--

A开发者_Go百科n object of class "entity.pendingRequest" uses SingleFieldIdentity using the field "empId" yet this field has not had its value set! Either set the field manually, or set a value-strategy for that field.


From the sound of it, you've designated empId as your primary key, but haven't supplied a value, or told it how to generate one, before attempting to store a recored.

0

精彩评论

暂无评论...
验证码 换一张
取 消