I have a little problem when I want to save entity in other Thread. e.g.
Executors.newCachedThreadPool().submit(() -> userService.save(user))
and in userService I have a lot of logic and at the end I want to save user into database using userRepository.save(user)
and repo doesn't save it. What am I doing wrong? If someone want more info let me know