Comparison of Hibernate and Mybatis

Comparison of Hibernate and Mybatis:

Hibernate:
standard, heavyweight, fully automated ORM framework
can write sql (SQLQuery, sql) or not write sql (Query, hql)
ORM mapping is mainly reflected in: table-entity class | view-entity class mapping

is generally Applied in projects with few changes in requirements (Hibernate is heavy and rigid)

Mybatis:
non-standard, lightweight, semi-automated ORM framework
Need to write sql
ORM mapping mainly in: input mapping (input parameter type), output mapping (output Result type)

is generally used in projects with many changes in demand (Mybatis is light and flexible)

The technology selection of enterprise projects is based on the principle of low cost and high return, and is selected according to the technical strength of the project team.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325218411&siteId=291194637