Plain old Java object
Appearance
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
- [[2]]