2009년 2월 9일 월요일

POJO Vs JavaBean

1)POJO is an acronym for Plain Old Java Object, and is favoured by advocates
of the idea that the simpler the design, the better. The name is used to
emphasize that the object in question is an ordinary Java Object, not a special
object, and in particular not an Enterprise JavaBean (especially before EJB 3).
The term was coined by Martin Fowler, Rebecca Parsons and Josh MacKenzie in
September 2000.

2)A JavaBean is a POJO that is serializable, has a no-argument constructor,
and allows access to properties using getter and setter methods. An Enterprise
JavaBean is not a single class but an entire component model (again, EJB 3
reduces the complexity of Enterprise JavaBeans).

댓글 없음:

댓글 쓰기