POJO
An 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 were so against using regular objects in their systems and concluded that it was because simple objects lacked a fancy name. So we gave them one, and it's caught on very nicely.
这个名词是我(Martin Fowler)与Rebbecca Parsons,Josh MacKenzie在2000年准备在一個研讨会中演讲时所创造出来的.在这个演讲中,我们指出,将商业逻辑编码成标准(regular)的Java对象,比使用Entity Beans,可以提供更多的好处.但是我们很惊讶,为什么人们如此反对在他们的系統中使用标准对象,我们的结论是:因为简单的对象缺乏一个流行的名称.因此我们给他一个好听的名称,而且这个名称非常贴切.
---------------
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 used to implement the business-logic tier.
无论EJB还是POJO都可以用来构建业务逻辑层.如果应用程序是分布式的,则拥有远程接口的EJB是一个很好的选择.而我们的JCatalog是一个典型的没有远程访问需求的Web应用,所以在Spring框架下的POJO被我们用来实现业务逻辑层.