Disadvantages of Hibernate Framework

Below are some disadvantages of hibernate framework-

1) Limited clustering capabilities.

2) Not much flexible when it comes to mapping composite-ids (although you can do a lot). Using Embeddable Composite Primary Key Class (uses @ Embeddable annotation)

3) Everything is an object. If you need only a portion of data (say, for a search), you would still have to retrieve the object. However, this is true for any ORM strategy.

4) Hibernate n+1 problems that comes for one to many relationship. That is, Hibernate will execute (n+1) queries for going through a list of records of size n. But you can  mitigate this risk.

5) Large data sets can still cause memory issues.

6) Support for security at a database level only and no support for role based security without any APIs like Spring AOP.

Gopal Das
Follow me

Gopal Das

Founder at GopalDas.Org
He is a technology evangelist, Salesforce trainer, blogger, and working as a Salesforce Technical Lead. After working in Java based project implementation, he jumped to the Salesforce system on a whim and never looked back. He fell in love with Salesforce’s flexibility, scalability, and power. He expanded his knowledge of the platform and became a Certified App Builder, Administrator, Platform Developer I, SalesCloud Consultant while leading the Salesforce implementation and technology needs. He has worked in a wide variety of applications/services like desktop, web and mobile applications.
Gopal Das
Follow me

Leave a Reply

Your email address will not be published. Required fields are marked *