Java Reference
In-Depth Information
at
@OneToOne
,
@ManyToOne
,
@OneToMany
, and
@ManyToMany
. Finally, you ex-
plored mapping inheritance strategies by learning the difference between single-table,
joined-tables, and table-per-class strategies and how the strategies are configured using
@Inheritance
,
@DiscriminatorColumn
,
@DiscriminatorValue
, and
@PrimaryKeyJoinColumn
. In
chapter 10
you're going to get an introduction to the
EntityManager
object and learn how to use the entities from this chapter and actually
persist the data to the database.