Showing posts with label Disadvantages of Hiberanate. Show all posts
Showing posts with label Disadvantages of Hiberanate. Show all posts

Disadvantages of Hibernate

Advantages of Hibernate
  • Slower than JDBC: Hibernate is slower than pure JDBC as it generates lot of SQL statements in runtime.

  • Lots of API to learn: A lot of effort is required to learn Hibernate. So, not very easy to learn hibernate easily.

  • Not suitable for Batch processing: It advisable to use pure JDBC for batch processing ,which takes less time for processing than hibernate.

  • Debugging: Sometimes debugging and performance tuning becomes difficult.

  • Not suitable for Small projects : For small projects having few tables it is useless to work with hibernate.

  • Does not allow multiple inserts : Hibernate does not allow some type of queries which are supported by JDBC.

    For example: It does not allow to insert multiple objects (persistent data) to same table using single query.

    Developer has to write separate query to insert each object into database.

  • Generates complex quires with many joins : For complex data, mapping from Object-to-tables and vise versa reduces performance and increases time of conversion.



Featured Post

H1B Visa Stamping at US Consulate

  H1B Visa Stamping at US Consulate If you are outside of the US, you need to apply for US Visa at a US Consulate or a US Embassy and get H1...