Java Reference
In-Depth Information
still a POJO with no JPA annotations. This is typically where you start when building your
domain model. A POJO is only a
candidate
for becoming an entity and being persisted to
the database.
Listing 9.1.
Category
domain object in Java