Interview question bank (9): ORM framework Mybatis, Hibernate and JPA

My shoe

  • How does Mybatis implement a series of operations in Dao? A brief introduction to the principle
  • How to configure master-slave data source in ORM framework, Mybatis principle
  • If you were asked to implement Mybatis, how would you design it? What are the commonly used tags in Mybatis? How to prevent sql injection? How to optimize sql in general? When the amount of data is large, should we consider sub-tables? How are sql statements executed? (I don’t know, but I guess the correctness of the SQL statement should be verified first, and then put into the execution engine for execution).
  • What is the difference between #{} and ${} in MyBatis?
  • Mybatis cache? Level 1 and level 2 cache?
  • Understanding the MyBatis framework?
  • Regarding the correspondence between XML mapping files and Mapper interfaces, what is the principle of this Mapper interface?
  • How does Mybatis perform paging?
  • How does MyBatis encapsulate the SQL execution results into target objects and return them?
  • Mybatis lazy loading and implementation principle?
  • Introducing the caching mechanism of Mybatis/Hibernate.
  • The difference between resultType and resultMap in Mybatis mapper file. The difference between Hibernate and Mybatis.
  • There is no implementation class written for the DAO layer interface in Mybatis. How are the methods in Mapper and the DAO interface methods bound together, and how are they implemented internally.
  • How does Mybatis find the specified Mapper and complete the query.
  • M

Guess you like

Origin blog.csdn.net/cq20110310/article/details/133171655