What is MyBatis?
MyBatis is an excellent persistence layer framework that supports regular SQL queries, stored procedures, and advanced mapping. MyBatis eliminates almost all manual settings of JDBC code and parameters, as well as retrieval of result sets. MyBatis can use simple XML or annotations for configuration and raw mapping, mapping interfaces and Java POJOs (Plain Old Java Objects) to records in the database
Comparison between mybatis and hibernate?
(1) MyBATIS currently offers versions implemented in three languages, including Java and NET and Ruby
Mybatis provides a semi automated ORM implementation.
The term "semi automation" here refers to the mapping between POJO and database tables, as well as the automatic generation and execution of SQL, compared to Hibernate and other fully automated ORM implementations that provide comprehensive database encapsulation mechanisms.
The focus of mybatis lies in the mapping relationship between POJO and SQL.