How database operations In Spring changes Java objects?
When I delete a category, with using deleteCategory method.Its deleted from category table. its what it supposed to be. And If do something like : categoryRepository.findByRestaurant_id(id);
it will give me correct response with the current categories. But with those I never change restaurants.getCategories() object yet it still changed. My question is how is this working internally? is this operation are happening in Database level but also Object level?