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