POJO的解释(最接近出处,目前所见最准确)

转载 2007年10月05日 13:46:00
http://c2.com/cgi/wiki?PlainOldJavaObject

Plain Old Java Object

POJO = "Plain Old Java Object". Term coined by MartinFowler, RebeccaParsons?, and JoshMacKenzie to denote a normal Java object that is not a JavaBean, an EntityBean, a SessionBean, etc., and does not serve any other special role or implement any special interfaces of any of the Java frameworks (EJB, JDBC, DAO, JDO, etc...). Any Java object can run within an EJB container, but many people don't know that or forget it. Fowler et al invented the acronym POJO so that such objects would have a "fancy name", thereby convincing people that they were worthy of use. POJOs are useful for creating a DomainModel. In contrast, the various types of beans and other special Java objects often have constraints that make it difficult to use them directly to model a domain.
I see a tendency of people fudging that definition of POJO because their ObjectRelationalMapping products obviously do not support POJO persistence, as they would like to announce. The typical case is referring to the JSR-220 (EJB3, JDO2) as "POJO persistence", when the EJB 3.0 early draft makes it clear that it is only a "Simplification of the enterprise bean types. Enterprise beans are simplified to more closely resemble plain Java objects ("POJOs") or JavaBeans." --KlausWuestefeld
For real POJO persistancy have a look at PersistedObjectTree unlike KlausWuestefeld's Prevayler it lets you use any type of data structure. -- Bjorn Blomqvist

EditText of this page (last edited October 3, 2007)
FindPage by searching (or browse LikePages or take a VisualTour

仿iOS滚轮选择器,目前最流畅,最好用,最接近iOS原生的开源控件

这几天因为公司的一个项目需要,2级联动,iOS样式滚轮,众所周知,Android端没有这样的原生控件,如图, 目前来说,这个开源控件具有的优势是, 1. 高自由度 如果需要省市,时间等这类,网...

找出二进制表示中1的个数相同,且大小最接近的那两个数

public int getNext(int n) { /* 计算c0和c1 */ int c=n; int c0=0; int c1=0; while(((c&1)==0) && (...

LeetCode 16 3Sum Closest 找出最接近指定target的三个数的和

题目: Given an array S of n integers, find three integers in S such that the sum is closest to a gi...

找出集合S最接近中位数的k(k≤n)个数

相关问题: 给出一个O(n)时间的算法,在给定一个有n个不同数字的集合S以及一个正整数k≤n后,它能确定出S中最接近其中位数的k个数. 思考过程: 如果给出在线性时间内的算法,那么可能要用到最坏为线性...

给定一整数在有序的整数数组中找出与给定值最接近的k个整数

思路:首先找出给定值在给定数组中的插入位置(不是真的将给定值插入给定数组),然后以此位置为基准,向左或向右依次找出最接近的k个整数。 难点:个人在处理过程中的难点在于向左或向右移动过程中的确切位置的...
  • cr2066
  • cr2066
  • 2016年08月13日 12:41
  • 871

搜狗笔试:N个正实数选出若干个之和最接近M

搜狗:有N个正实数(注意是实数,大小升序排列) x1 , x2 ... xN,另有一个实数M。 需要选出若干个x,使这几个x的和与 M 最接近。 请描述实现算法,并指出算法复杂度。 思路:对于每一个...

hznu 1441 Greatest Number(选出4个数,使值最接近m)

Saya likes math, because she think math can make her cleverer. One day, Kudo invited a very simple ...
  • cacyth
  • cacyth
  • 2015年05月21日 15:09
  • 263

设计模式个人所见

1、FACTORY—追MM少不了请吃饭了,麦当劳的鸡翅和肯德基的鸡翅都是MM爱吃的东西,虽然口味有所不同,但不管你带MM去麦当劳或肯德基,只管向服务员说“来四个鸡翅”就行了。麦当劳和肯德基就是生产鸡翅...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:POJO的解释(最接近出处,目前所见最准确)
举报原因:
原因补充:

(最多只允许输入30个字)