Hibernate - Component Mappings A Component mapping is a mapping for a class having a reference to another class as a member variable. We have seen such mapping while having two tables and using element in the mapping file. Now we will use element in the mapping file and a single table would be used to keep the attributes contained inside the class variable.
Hibernate - Component Mappings---> In component mapping, we will map the dependent object as a component. An component is an object that is stored as an value rather than entity reference. This is mainly used if the dependent object doen't have primary key. It is used in case of composition (HAS-A relation), that is why it is termed as component.
License
pratikdimble/Hibernate_Component_Mapping_Using_DAO_Using_Maven
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Hibernate - Component Mappings---> In component mapping, we will map the dependent object as a component. An component is an object that is stored as an value rather than entity reference. This is mainly used if the dependent object doen't have primary key. It is used in case of composition (HAS-A relation), that is why it is termed as component.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published