While using spring MVC, we always try to maintain the (controller - > service -> dao) hierarchy. In spring webflow for an action state we can call method of any POJO. My question is, say I have a scenario where I need a boolean result from a dao method and nothing more than that. In this case, should I need to maintain the service -> dao hierarchy (where actually nothing is done in service method rather than calling the appropriate dao method and returning it's result) or it it OK to call the dao method directly?


Reply With Quote