报错:
IllegalArgumentException occurred while calling setter for property [xxx.recordId (expected type = long)];
target = [xxx], property value = [POST_INSERT_INDICATOR]
原因: 生成hibernate模型时有两个主键注解@Id,去处其中一个或者增加一个key关联的类(反向生成时会有,不要删除就行)
报错:
IllegalArgumentException occurred while calling setter for property [xxx.recordId (expected type = long)];
target = [xxx], property value = [POST_INSERT_INDICATOR]
原因: 生成hibernate模型时有两个主键注解@Id,去处其中一个或者增加一个key关联的类(反向生成时会有,不要删除就行)
本文标题:hibernate setter错误 POST_INSERT_
本文链接:https://www.haomeiwen.com/subject/arbgvftx.html
网友评论