In this tutorial you will understand the concept of ORM.In this tutorial you will understand the concept of ORM.
In this tutorial you will understand the concept of ORM.
What is ORM?
ORM, also known as Object/Relational Mapping, is a programming technique, which is used in conversion of data from incompatible type to relational database. In terms of java, ORM is an automated persistence of objects.Actually, ORM is a technique that maps the data representation representation from an object model to the relational data model with SQL based schema.
Why do we use ORM?
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
In ORM we can use plain java object. It automatically generates required SQL for storing object. A good ORM contain feature of query language.
Need of ORM tool like hibernate?
Hibernate is open source ORM tool. 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.
Hibernate reduces the time to perform database operations. It is implemented by using simple POJOs.
ORM tools like hibernate provides following benefits: -