Thu Oct 23, 2008 12:59 am
CAn any one please explain about POJO specificationand JAva bean
specification.What is th difference between them
Thu Oct 23, 2008 1:00 am
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).
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.