Hi,
I am using Spring 3.0 in my project. My project architecture is something like this.
Controller -> delegate -> Service -> DAO -> Adapter layer.
My question is. I am using annotation. So
Controller -> @Controller
Delegate -> ?
Service -> @Service
DAO -> @Repository @Transactional
Adapter -> ?
Delegate will be injected to Controller. Service will be injected to Delegate. DAO will be injected to Service. Adapter will be injected to DAO. Thats how DI works in my project.
I am not sure what annotation i have to use in Adapter and Delegate layer. Also can somebody tell me whether the annotation tag that i am using in each layer is correct or not?
Thanks,
Pradeep


Reply With Quote