Chapter 4. Entity beans advanced: relationships, inheritance, custom queries

This chapter extends the discussion presented in Chapter 3, “Entity beans” on page 73, to present the advanced features of EJB development available in EJB 2.0. These features include:

  • Container-managed relationships (CMR)

  • Inheritance (an IBM extension)

  • Custom queries using EJB query language (EJB QL)

We conclude the chapter by extending the application presented in Chapter 3, to fold in examples of each topic, as well as discuss some design considerations when leveraging these new features.

Get EJB 2.0 Development with WebSphere Studio Application Developer 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.