2021-07-23

org.springframework.orm.jpa.JpaSystemException: identifier of an instance was altered to null


my case was exception throw during selection(findAll()) within a loop.

what i did was trace down the instance within the loop, identify where i changed the ID previously and patch accordingly.