Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

POJO  RSS feed

 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Whats a POJO...and how is it different from a Javabean..

Regards
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It stands for "Plain Old Java Object", and it's used to mean "not an Enterprise Java Bean." If you don't known what an Enterprise Java Bean is (it's totally different from a Java Bean), it's a very heavyweight object with all sorts of complex requirements, used only with a complex framework hanging around it.
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But will any java object that isnt a EJB be a POJO....???
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pretty much, yeah.
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you....
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And check out Chris Richardson (author of Pojo in Action)'s explanations at the ranch :
* For a description of POJOs and their benefits see: http://www.coderanch.com/t/216003/ORM/java/Chris-Richardson-do-you-call
* See also: http://www.javaranch.com
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://en.wikipedia.org/wiki/Plain_Old_Java_Object is a very good description.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't confuse them with a Pogo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!