Hi folks
I'm fresh to Spring framework and I'm refactoring a legacy web application.
The original architecture is Html-Servlet-Stored proc. The stored procedures are designed for query data only, no creation, no update and no delete.
I plan to use Spring framework during refactoring.
I searched with Spring samples and articles here, most commonly used architecture of Spring is: WebMVC-Service-DAO.
In my case, I could call stored procedure in the Service layer(actually, I havn't found better way to call stored procedure in DAO layer, if you have, please help to indicate).
So my question comes here: Whether the DAO layer is needed when using stored procedure? Or call stored procedure from the Service bean directly is good manner or bad?
Thanks!


Reply With Quote