Defining Hibernate Basic O/R Mappings

There are two kinds of classes in Hibernate, entity classes and value type classes. Entity classes have their own database identities, mapping files and life cycles, while value type classes don't have. Value type classes depend on entity classes. Value type classes are also called component classes.

Hibernate uses mapping files to define the mapping metadata. Each mapping file <Class>.hbm.xml can contain metadata for one or many classes. PowerDesigner uses the following grouping strategy: