November 26 2013 by Kevin Bowersox

The following tutorial details how to use the @Inheritance annotation in JPA to map an inheritance relationship in an object model.  The tutorial discusses the capabilities provided by @Inheritance that are absent when utilizing the @MappedSuperClass annotation.  Appropriate use of both annotations is further discussed.

 

To follow along, download the base code used for this tutorial from this GitHub repository. Source code for the completed project can be downloaded by clicking the GitHub logo below.

Post a Comment
*Name
Email
Site
*Comment