Appendix E. EJB 3.0 Entity Inheritance Hierarchies

Overview

JPA provides declarative support for three main implementation strategies that dictate how the entities in a hierarchy map to underlying tables.

To illustrate how these three strategies are manifested in code, we will use the sample entity hierarchy that demonstrates inheritance:

Sample entity hierarchy

The Person entity serves as the root class in an entity hierarchy, and is extended by the Employee entity.

NOTE: The source code for this tutorial can be downloaded as a zip archive.

Professional hosting     Belorussian informational portal         Free SCWCD 1.4 Study Guide     Free SCDJWS 1.4 Study Guide     SCDJWS 1.4 Quiz     Free IBM Certified Associate Developer Study Guide     IBM Test 000-287. Enterprise Application Development with IBM WebSphere Studio, V5.0 Study Guide     Free Mock Exam Engine