Back to Top

Tuesday, 14 January 2014

FRAMEWORK: ORM – Object Relational Mapping


    ORM (Object Relational Mapping) is a programming concept of a mapping between Object Oriented Programming and Relational Database. It’s the technique to frame the components of Relational Database to Object Oriented Programming, to do CRUD operations. It creates an object oriented representation of a relational database, so that developers can push or pop data to database as an object.
 

  Databases are designed on the basis of Mathematical principle where as programming languages like Java, C++, C# are based on Object Oriented Programming principle. Objects have behavior and attribute, it’s good on business modeling where on the other hand database is only deals with large amount of data. Now due to this conceptual deference, in real life scenario, database transactions become unmanageable, when we are dealing with large amount of data transaction. So to bridge this difference, ORM is introduced. It’s the process of mapping tables to class objects, so that data transactions could be easier.


Pros:

  1. Create classes replicating database tables, in programming language side, so that programs can interacts with objects not direct tables.
  2. Provides APIs for normal CRUD (Create Read Update Delete) operations, so no need to write queries for that.
  3. Some provides query language which is database independent.
  4. Provision to interact with multiple databases.
  5. Helps to manage business logic easily when dealing with big amount of data, and lots of database transaction.



Corns:

  1. No need to use when your application doesn't involve much database interaction.
  2. Little bit heavier than native database connectivity.



Object Relational Mapping


2 Responses to “ FRAMEWORK: ORM – Object Relational Mapping ”

Naviya Nair said...
24 October 2016 at 15:00

I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai

Online Java Training Java 8 Online Training | Java J2EE Online Training | JavaEE Training Institute in Chennai Java Training Institutes

Java Training Institutes in Chennai Java Training in Chennai


Sujitkumar said...
8 April 2017 at 15:41

nice post for sharing Java article. its really helpful for me. keep shring on updated tutorials????????????????


Post a Comment

Popular Posts

All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar
blog links Web Directory Academics Blogs