Transactional: controller vs service

Consider I have a controller method get() which calls a few service methods working with database.

Is it correct to make the entire controller method transactional or just every service method?

It seems to me that we must make get() transactional because it performs associated operations.

11
задан naXa 26 October 2018 в 17:31
поделиться