Object Relational Mapping (ORM) is a mechanism that makes it possible to address, access and manipulate objects without having to consider how those objects relate to their data sources. Basically converting data from tables in a relational database to objects and vice versa.
The good thing when using ORM is :
- Reducing the hand code (number line of code)
- Maintainability, don’t need to re-write the same query.
- Performance, writing the code more efficiently
- Vendor independence, not depend on particular DBMS. Only need to change database connection configuration