Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

The difference between MyBatis and ORM


May 16, 2021 MyBatis



mybatis belongs to half orm because sql statements need to be written by themselves.


Unlike other more standard ORM frameworks, such as Hibernate, mybatis does not associate java objects with databases, but rather java methods with sql statements, allowing users to take full advantage of the various features of the database, such as storage, views, complex queries, and the proprietary nature of some databases.


The advantage of writing your own sql statements is that you can write the best sql statements according to your needs. H igh flexibility. H owever, platform portability is not high because you write your own sql statements. MySQL statements are different from Oracle statements