I have two services in Spring boot. From the main service i am calling another service which insert a row in the DB as following:
repo.saveAndFlush(payment);
As soon as the child service finishes its work in the main service i didn't get the updated response using following query:
repo.findOne(id);
Its all happening synchronously. I want to get all the rows using findOne() method including newly inserted row.
Any help is appreciated.