Advantages and disadvantages of using hibernate

Source: Internet
Author: User

Yesterday in the application was asked by HR, what are the advantages and disadvantages of hibernate? Now try to summarize the following, please give us a supplement, fix!

Advantages:

1. Object/relational database mapping (ORM)

2, the code is simple, does not need to write the SQL statement (does not need to edit the JDBC), only needs to manipulate the corresponding object to be possible, can be able to store, update, delete, the loading object, may improve the production efficiency;

3, good transplant (as long as the use of Hibernate standard development, replace the database, only need to configure the appropriate configuration file on it, do not need to do other tasks of operation);

4. Hibernate implements transparent persistence: When an object is saved, this object does not need to inherit any class from Hibernate, implements any interface, just a purely simple object-called the Pojo object (the purest object- This object does not inherit any class from the third-party framework and implements any of its interfaces)

5, the development of the object, because the use of hibernate only need to manipulate the object can be, so our development more object;

6. Hibernate is a non-intrusive framework that we generally call a lightweight framework without intrusive frameworks.

Disadvantages:

1, batch processing data has a certain weakness, for batch modification and deletion is not very practical;

2, the query efficiency is inferior to the JDBC Direct Access database high.

Advantages and disadvantages of using hibernate

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.