ORM
β ORM
Object Relational Mapping
- Map
object
andrelational DB
automatically - save burden to code SQL
- Object oriented programming: use class
- Relational DB: use table
- thus, there is mismatch between
Object model
andRelational model
ORM maps the relation between objects, create SQL
- ππ» with OOP, focus more on business logic
- ππ» code reusability
- ππ» less dependent on DBMS
- ππ» difficult to create service with only ORM
- ππ» difficult when there is a lot of procedure
- ππ» less functions than MyBatis
β MyBatis
- manage framework, SQL
- ππ» more functions than ORM
- ππ» need SQL coding
- ππ» need to manage between object and database
This post is licensed under CC BY 4.0 by the author.