Design Patterns used in Hibernate Framework

In this post, let's discuss a different kind of design patterns which are widely used in the Hibernate Framework. Design Patterns denote the best computer programming practices in object-oriented software development. Hibernate framework has been built by using the following design pattern or standard practices.
I listed few known design patterns used in Hibernate Framework.
Please leave a comment, if you know any other design patterns used in Hibernate Framework.

You can also read my post of Design Patterns used in Spring Framework.

Domain Model Pattern

The domain model is treated as POJO in Hibernate.

The domain model is an object model of the domain that incorporates both behavior and data.

Read more about Domain Model Pattern here at

Proxy Design Pattern

Proxy Pattern for lazy loading -

Proxy Pattern provides a surrogate or placeholder for another object to control access to it.

Read more about Proxy Design Pattern here at

Factory Design Pattern

SessionFactory of Hibernate is an example of the Factory Design Pattern.

This pattern defines an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.

Read more about Proxy Design Pattern here at

Query Object Pattern

Hibernate Criteria API and the modern JPA2 Criteria API are an excellent examples Query Object Pattern.

Read more about Query Object Pattern here at

Data Mapper Pattern

A layer of Mappers that moves data between objects and a database while keeping them independent of each other and the mapper itself.

Read more about Data Mapper Pattern here at

Unit of Work

This pattern as part of Session object in hibernate.

Read more about Unit of Work here at


  1. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

    Hibernate Training in Electronic City

  2. Search Engine Optimization takes the rank of your site on the next level. SEO is indeed essential since, without it, your website cannot survive. SEO works wonderfully to any location.
    Content Writing Company in Delhi
    Content Writing Services in Delhi
    Mobile App Development Company Delhi
    PPC Company in Delhi
    PPC Company in India

  3. Happy to found this blog. Good Post!. It was so good to read and useful to improve my knowledge as updated one, keep blogging. Hibernate Training in Electronic City
    Java Training in Electronic City

  4. i wish more writers of this sort of substance would take the time you did to explore and compose so well. I am exceptionally awed with your vision and knowledge.

    Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery

  5. Can’t tell a good article, because it is more than that, thanks keep going...

  6. Nice post really interesting article. we are the leading ui ux agency and ui ux designers

  7. Outstanding post. I am grateful for this blog to distribute knowledge about this significant topic. Otherwise if any one who want to do a diploma or master in web design at High Technologies Solutions (HTS). Contact us on 9311002620 or visit:-


Post a comment