Solve org hibernate. HibernateException: identifier of an instance of com. ahd. entity. Order was altered from2 to 0
•
Java
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
二维码