java in POJO, DAO, SERVICE, etc.

Simple Java objects (Plain Ordinary Java Objects) is in fact an ordinary JavaBeans, use POJO and EJB name to avoid confusion up, and referred more directly. Some of these attributes and class getter setter methods, sometimes as a value object or dto (Data Transform Object) to use. of course, if you have a simple arithmetic attribute is also possible, but does not allow business methods, we can not carry the connection method and the like.

    POJO is an abbreviation for Plain Ordinary Java Objects is good, but it did not pass refers to ordinary java object using Entity Beans can be used as the POJO class assistance to support the business logic.

    There are some private POJO parameters as properties of an object. Then defines the interface as get and set methods for accessing each parameter. (From https://www.cnblogs.com/zyt528/articles/9729716.html )

 

to be continued

Published 125 original articles · won praise 9 · views 30000 +

Guess you like

Origin blog.csdn.net/jiezhang656/article/details/105074933