Mybatis&hibernate differences

Source: Internet
Author: User

MyBatis is an incomplete ORM framework, because MyBatis needs programmers to write a lot of SQL, the programmer needs to master the SQL is relatively high, but MyBatis can through the XML file can be flexibly configured to run SQL statements, A good relational mapping of SQL and Java objects.


MyBatis Lower learning threshold, can strictly control the performance of SQL execution, flexibility, suitable for the relational data model requirements of software development, such as Internet software, enterprise operations software. Because the demand for such software varies rapidly and more. The premise of flexibility is that the database does not have a relationship, if you want to implement software that supports a variety of databases, you need to customize multiple sets of SQL mapping files, a lot of work.
Hibernate is a complete ORM framework, database-independent, suitable for high-relational data model software, can save a lot of code, improve efficiency. and Hibernate performance tuning requires a strong experience and ability.


In short, the user needs in a limited resource environment, as long as the maintenance and extensibility of the software architecture is a good architecture, the framework only the right is the best.

Mybatis&hibernate differences

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.