Object Conversion of Each Level in J2EE (Struts + Hibernate)

zhaozj2021-02-16  91

FromBean is the part displayed on the JSP page. VO is an object processed in the business logic. Generally, the FORMBEAN is converted into Vo in the execute method in the action, then call the business logic method in DAO to pass the VO, then in the persistence layer VO Convert to PO. The above is when it is changed,

When the query is performed, the business logic converts the PO to the VO to the action, is it necessary to conversion in VO and FORMBEAN in the action? In principle, the transition is required, and the business logic and Struts are peeled off. Of course, if it is for efficiency Don't want to transform frequently, you can use Vo to put it directly to JSP

My current understanding is like this, it may not be complete.

转载请注明原文地址:https://www.9cbs.com/read-11947.html

New Post(0)