Question - Which are the design patterns that are used in Hibernate framework?
Answer -
There are a few design patterns used in Hibernate Framework, namely:
- Domain Model Pattern: An object model of the domain that incorporates both behavior as well as data.
- Data Mapper: A layer of the map that moves data between objects and a database while keeping it independent of each other and the map itself.
- Proxy Pattern: It is used for lazy loading.
- Factory Pattern: Used in SessionFactory.