What is POJO?

xiaoxiao2021-03-06  41

Pojoan Acronym for: Plain Old Java Object.

The term was coined while Rebbecca Parsons, Josh MacKenzie and I were preparing for a talk at a conference in September 2000. In the talk we were pointing out the many benefits of encoding business logic into regular java objects rather than using Entity Beans. We wondered Why People Objects in Their Systems and Concluded That It Was Because Simple Objects Lacked A Fancy Name. So We Gave The ONE, AND IT'S CAUGHT ON VERY NICELY.

This noun is Martin Fowler and Rebbecca Parsons, Josh Mackenzie is ready to be created during a seminar in 2000. In this speech, we pointed out that the business logic encodes a standard (regular Java object). More benefits than using Entity Beans. But we are surprised, why people use standard objects in their system, our conclusion is that because simple objects lack a popular name. So we give him A nice name, and this name is very attractive.

---------------

Either EJB (Enterprise JavaBeans) or POJO (plain old Java objects) can be used to build the business-logic tier. EJB with remote interfaces is a better choice if the application is distributed. Since JCatalog is a typical Web application with no remote access Required, Pojo, with the help of the spring framework, is buy to import the business-logic tier.

Regardless of EJB or POJO, you can build business logic layers. If the application is distributed, the EJB with remote interface is a good choice. And our JCATALOG is a typical web application that is typical without remote access. So POJO under the Spring framework is used to implement the business logic layer.

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

New Post(0)