MyBatis
My Life | Type the code

What is MyBatis?

MyBatis is an excellent persistence layer framework that supports common SQL queries, stored procedures, and advanced mappings. MyBatis eliminates almost all manual setting of JDBC code and parameters and retrieval of result sets. MyBatis can use simple XML or annotations for configuration and raw mapping to map interfaces and Java POJOs (Plain Old Java Objects) to records in the database.

mybatis vs. hibernate?

(1)MyBATIS is currently available in three languages: Java,.NET, and Ruby

mybatis provides a "semi-automated" implementation of ORM.

The "semi-automation" here is relative to the "fully automated" ORM implementation such as Hibernate that provides a comprehensive database packaging mechanism, the "fully automated" ORM implements the mapping between POJOs and database tables, as well as the automatic generation and execution of SQL.

The focus of mybatis is the mapping relationship between POJOs and SQL.