shows that when an object or class have the collection of values for a perticular variable, then we map those values using any one of the collection interfaces available in java.Hibernate can persist instances of
of persistent entities or values.
Hibernate support to array with java primitive value types and every things. When we want to map a user defined collection interface that is not directly supported by Hibernate.
Component Mapping: In hibernate entity class can have a reference to another class as a member variable. When we use referred class that class does not have it's own life cycle and completely depends on the life cycle of the owning entity class, then referred class hence therefore is called as the component class.
Collection of mapping component is also possible in a similar way just as the mapping of regular collection with maijnor configuration differences.
Component Mappings -> Mapping for a class having a reference to another class as a member variable.