Object Relationalmapping and Java Persistence Framework

Submitted by: Submitted by

Views: 347

Words: 849

Pages: 4

Category: Other Topics

Date Submitted: 09/23/2011 04:57 AM

Report This Essay

Object Relational Mapping and Java Persistence Framework with Performance Analysis

Girija Senthilkumar (Author)

Corporate Alignment Team,

NTT Data Company

Bangalore, India

Girija.Senthilkumar@keane.com

G. Senthilkumar

Infrastrutcutre Management Team,

Tata Consultancy Services

Bangalore, India

Senthikumar3g@tcs.com

Abstract—Object-relational mapping (ORM, O/RM, and O/R mapping) in computer software is a programming technique for converting data between incompatible type systems in object-oriented programming languages. In a application where data management is take vital role Persistence layer takes care of persistence logic. The traditional framework JDBC has more execution time compared to ORM framework applications.

Keywords-Object, Mapping, Persistence; Performance Analysis

Introduction to object relational Mapping

Object-relational mapping (ORM) simply means translating the data from the database's relational model to the Java heap's object-oriented (OO) model[1]. At its core, ORM means translating the tables, columns, and rows of a database into the object instances, fields, and reference pointers of the Java heap, and vice versa. While many techniques are employed to perform this job, all ORM tools, such as Hibernate, iBatis, and TopLink, must solve fundamentally the same problem

Data management tasks in object-oriented (OO) programming are typically implemented by manipulating objects that are almost always non-scalar values. For example, if an application wants to manipulate data on Customer of retail shop with following scalar values CustomerID, Name, Address need to create a class as below :

Class Customer

{String c_name; int c_id; String c_address;}

However, many popular database products such as structured query language database management systems (SQL DBMS) can only store and manipulate scalar values such as integers and strings organized within tables. The programmer must either convert the object values into...