Jump to content

Plain old Java object

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Chronist~enwiki (talk | contribs) at 20:32, 17 June 2005 (created). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

POJO is an acronym for Plain Old Java Object.

The name is used to emphasize that the object in question is not somehow special but an ordinary Java Object, in particular not an EJB.

The term was coined by Martin Fowler, Rebbecca Parsons and Josh MacKenzie in September 2000. "We wondered why people were so against using regular objects in their systems and concluded that it was because simple objects lacked a fancy name. So we gave them one, and it's caught on very nicely."[1]

Comparison

  • POJOs:
    • light-weight (possibly)
    • flexible
    • simple
  • EJBs:
    • standardized
    • well supported
    • heavy-weight
    • sophisticated (complicated)

Because of some of the above reasons there currently is a noticable trend away from EJBs towards POJOs.

References