What is a POJO? "A POJO is a simple ordinary java object that does not extends classes or implements interfaces from any frameworks or APIs" The term "POJO" is mainly used to denote a Java object which does not follow any of the major Java object models, conventions, or frameworks. A POJO is a Java object that doesn't implement any special interfaces ,extends classes, defined in frameworks and APIs. Ideally speaking, a POJO is a Java object not bound by any restriction other than those forced by the Java Language Specification. i.e a POJO should not have to. Extend prespecified classes, as in public class Foo extends javax. servlet . http . HttpServlet { ... Implement prespecified interfaces, as in public class Bar implements javax. ejb . EntityBean { ... Contain prespecified annotations, as in @javax. persistence . Entity public class Baz { ... However, due to technical difficulties and other reasons, many ...
Comments
Post a Comment