lishman levelup
«previous  next»


Getting Started
Associations

HQL



Entity Associations in Hibernate


Hibernate lets you map associations between persistent classes to reflect the relationships between the underlying database tables.


For example, we can map the associations on these Java classes



to the foreign key constraint on these tables



SQL is automatically generated and executed by Hibernate when the associations are accessed.
»