EmptyResultDataAccessException and entity id exist
I use spring data jpa repository inside a spring batch project.
I try to delete some entities inside a step and sometime i've got this exception :
org.springframework.dao.EmptyResultDataAccessExcep tion: No class com.company.domain.MyEntity entity with id (my_id) exists!
I don't understand why this exception is thrown because my record exist in the database.
Do you think if it's a problem with cache or the status of my table (innodb)?
Thanks in advance.