Solve org hibernate. HibernateException: identifier of an instance of com. ahd. entity. Order was altered from2 to 0

error message

Causes:

  1.

    eg.

The type of ID in the mapping file is integer, that is, int, while the type of ID in the entity class is long. That's the problem!

(some details were not done well when writing or modifying Java beans)

    eg.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>