org.hibernate.HibernateException: identifier of an instance of org.cometd.hibernate.User altered from 12 to 3
in fact, my user table
user
If you are using Spring MVC or Spring Boot try to avoid: @ModelAttribute("user") in one controoler, and in other controller model.addAttribute("user", userRepository.findOne(someId);
This situation can produce such error.