Chapter 4. EJB Persistence

In this chapter, we will cover:

  • Creating an entity
  • Creating an entity facade
  • Using the EntityManager
  • Controlling the Object-Relationship Mapping (ORM) process
  • Using embeddable classes in entities
  • Using application-managed persistence
  • Validating persistent fields and properties
  • Validating null fields
  • Validating string fields
  • Validating temporal fields
  • Validation using regular expressions
  • Validating Boolean fields
  • Validating Integer fields
  • Using the Validator class

Introduction

Most applications have a need to store and retrieve data. The data may be stored in a file or other location such as a database. This location is sometimes referred to as the backing store. This need is also present for object-oriented applications. The Java class ...

Get EJB 3.1 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.