Collection is a group of objects. As hibernate maps the entity classes to the database tables so if an entity has a collection of values for a property then these types of properties can be mapped to the any one of the available java collection interfaces.
Hibernate provides the facility to persist the instance of any one of the following:
- Hibernate collections mappings with example.
- Hibernate Set mapping
- Hibernate SortedSet mapping
- Hibernate list mapping
- Hibernate bag mapping
- Hibernate Map mapping
- Hibernate SortedMap mapping
Next Topic: Hibernate Set mapping with example.
Previous Topic: Hibernate example using annotation.