Plain old java object
A plain old Java object is an ordinary Java object whose basic behavior does not depend on framework-specific inheritance, interfaces, or runtime mechanisms.
Java Persistence with Spring Data and Hibernate epub
A POJO is an ordinary Java object that does not depend on framework-specific base classes, interfaces, or runtime mechanisms for its basic behavior.
- How it is used
- Uses POJOs to keep domain behavior separate from persistence concerns while supporting fine-grained models.
- How deep it goes
- Explains entity design constraints, constructor and proxy behavior, field access, and immutable mappings.
- Examples
- Illustrates accessor logic with User and fine-grained modeling with Address, then maps an immutable Bid entity.
- What you can do after
- Evaluate and design persistence-capable domain classes while accounting for portability, proxies, and field access.
Read how Java Persistence with Spring Data and Hibernate epub explains plain old java object →
Spring Start Here, Second Edition
A Java object that does not require framework-specific inheritance or interfaces.
- How it is used
- Models application data with a simple Java object, such as a comment with an author and text.
- How deep it goes
- Defines a POJO as an object with attributes and methods and no dependencies, without expanding into further design rules.
- Examples
- Uses Comment with author and text fields, and an unannotated Parrot registered as a Spring bean.
- What you can do after
- Build it from scratch by defining a Java class with data attributes and methods, as the Comment example does.
Read how Spring Start Here, Second Edition explains plain old java object →
Also covered in
What to know first
- accessor methodAn accessor method or function is a callable that reads, computes, or assigns a value associated with a property, field, or data element.
- constructor methodA constructor method is a type-associated operation involved in creating an instance and establishing its initial state.
Related concepts
- transparent persistenceimplements · Transparent persistence is persistence in which application code can work with domain objects without explicitly performing their storage and retrieval operations.
- accessor methodcontrasts with · An accessor method or function is a callable that reads, computes, or assigns a value associated with a property, field, or data element.
- JavaBeansequivalent to · JavaBeans are Java classes that follow conventions for properties, accessor methods, construction, and component introspection.
- object literalcontrasts with · An object literal is a language expression that directly specifies an object value and its constituent properties or values.
Questions about plain old java object
What is plain old java object?
A plain old Java object is an ordinary Java object whose basic behavior does not depend on framework-specific inheritance, interfaces, or runtime mechanisms.
Which Manning books explain plain old java object?
Java Persistence with Spring Data and Hibernate epub and Spring Start Here, Second Edition.
What should I know before learning plain old java object?
Manning books that teach plain old java object usually introduce accessor method and constructor method first.
What is the difference between plain old java object and accessor method?
A plain old Java object is an ordinary Java object whose basic behavior does not depend on framework-specific inheritance, interfaces, or runtime mechanisms. An accessor method or function is a callable that reads, computes, or assigns a value associated with a property, field, or data element.
What is plain old java object a kind of?
Plain old java object is a kind of object. A programming-language object is a runtime entity with a type or properties and associated state that participates in computation.
What is plain old java object also called?
Plain old java object is also called POJO.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

