Possible Duplicate:
What is the right way to use spring MVC with Hibernate in DAO, sevice layer architecture
I have 5 main layers in my application:
- Controller
- Delegate
- Service
- Facade
- DAO
Where should the @Transactional annotation go, according to the best practices?
Are there any exceptions where they can go in a Controller?
A facade is what you access from outside your system. Internally it may delegate to one or multiple services. Since a facade should never contain any logic and should simply delegate to only one service method (and not bunch multiple service calls together), it should not contain the
@Transactionalannotations. The services should have them instead.