I am very new to transactions in spring.Due to some code standards used by my organization , i asked to join parent transaction if exist while calling any method.
My application is a Spring MVC application having three layers
- Web Layer(controller classes)
- Service Layer(Service class containing business logic)
- DAO Layer (DAO(Data access layer) classes for DB related query )
Now in a method on service layer uses three different methods of dao layer. I have annotated this service method as transactional in nature by using @Transactional. Now i want all three dao methods called from this service layer methods also be transactional in nature and must join the parent transaction started by service layer method insisted of starting other new translations for each dao methods.