lish level up
«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.
»
See Also
 
Quick Start
Get up and running in minutes with all the SQL and Java code from this section

Feedback
If you have any comments or suggestions about level up, please visit lishblog or email mark.lishman@googlemail.com