java - struts controller and service layer? -
the existing application working on, action classes interact dao classes directly.
would better action classes, invoke service layer classes(businessfacade) in turn invoke dao?
is better develop layer between action classes , dao layer?
it's better because in way can separate business logic (the logic not related naviagtion matters) possible reuse.
if separate you'll able reuse business logic in non web application.
the data access layer intended layer objects persisted to, , restored from, abstract storage , actually, specially in case of rdbms persistence, may implemented orms, can see business logic layer orm persist objects. prefer merge business logic orm, in case rather front end framework.
Comments
Post a Comment