Open jafamo opened 9 years ago
In JPA scenario, the server returns a 500 Internal Server Error
when attempting to delete the 2nd User from a total of 3 users.
The exception reads:
identifier of an instance of org.examples.spring.databinding.jpa.User was altered from 2 to null
Error deleting user repository, except the first. You need start the application and select JPA from panel. When you add users and save, if you want delete user2 or user3 and save, the application thows Exception, but if you delete the first user, you will not have problems. Example:
User1:user1@mail.com User2:user2@mail.com User3:user3@mail.com
If delete user2, error
Error: (identifier of an instance of org.examples.spring.databinding.jpa.User was altered from 2 to null; nested exception is org.hibernate.HibernateException: identifier of an instance of org.examples.spring.databinding.jpa.User was altered from 2 to null)
In the path: /src/test/java
This class "JPADataBindingController.test.java" has a function "public void itDeletesAUserAfterOne()". This function throws Exception because cannot delete users and save.