Difference between Hibernate and MyBatis

Hibernate and MyBatis both are Object Relational Mapping (ORM) frameworks which allow us to access relational databases from object-oriented languages. But what is the difference between them. In my opinion, the most difference is the control over SQL. Hibernate allow you to CRUD using object entity MyBatis should be used for fetching data using complicated SQL Hibernate Example Pojo Class Mapping Configuration File How to Use MyBatis Example The mapper interface definition The definition of BlogMapper.