3 Domain models and metadata

This chapter covers

  • Introducing the CaveatEmptor example application
  • Implementing the domain model
  • Examining object/relational mapping metadata options

The “Hello World” example in the previous chapter introduced you to Hibernate, Spring Data, and JPA, but it isn’t useful for understanding the requirements of real-world applications with complex data models. For the rest of the book, we’ll use a much more sophisticated example application—CaveatEmptor, an online auction system—to demonstrate JPA, Hibernate, and later Spring Data. (Caveat emptor means “Let the buyer beware.”)

Major new features in JPA 2

A JPA persistence provider now integrates automatically with a Bean Validation provider. When data is stored, ...

Get Java Persistence with Spring Data and Hibernate now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.