Why do we use ORM?
ORM is technology to access the data from the database. With the help of ORM framework, business object is directly mapped to the database table. ORM reduces overhead of your programming. In ORM we define the way of mapping of classes to table and also define the mapping of which property for which column. In ORM we can use plain java object. It automatically generates required SQL for storing object. A good ORM contain feature of query language.
· ORM provides less error-prone code
· Optimised performance
· It solves portability issues
· It reduces development time.