hibernate setter错误 POST_INSERT_INDICATOR

报错:

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_INDICATOR)