POJO X JAVABEANS

Hi there, What's the diference between POJO and JavaBeans ?Thanks
[87 byte] By [maazevedoa] at [2007-10-2 20:32:45]
# 1
javabeans follow the getXXX() and setXXX() standard for accessor/mutator methods, POJOs aren't bound in this way. in reality, the difference is the spelling, since pretty much everyone uses getXXX() and setXXX() above any alternatives. it's just terminology really
georgemca at 2007-7-13 23:15:55 > top of Java-index,Other Topics,Patterns & OO Design...
# 2

When talking about JavaBeans it is assumed you mean a class that follows the JavaBeans spec:

http://java.sun.com/products/javabeans/docs/spec.html

A POJO is, as the previous poster mentioned, not bound by this. Note that the spec goes beyond the naming of accessor/mutator methods.

Good Luck

Lee

tsitha at 2007-7-13 23:15:55 > top of Java-index,Other Topics,Patterns & OO Design...