-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Why there is need of Object Relation Mapping
PostPosted: Tue Jul 10, 2007 2:30 am 
Newbie

Joined: Tue Jul 10, 2007 2:12 am
Posts: 3
Location: Indore, India
Need help with Hibernate? Read this first:
i want to know y there is need of ORM, and what is meaning of Object Persistence


Top
 Profile  
 
 Post subject: Re: Why there is need of Object Relation Mapping
PostPosted: Wed Jul 11, 2007 1:25 am 
Newbie

Joined: Tue Jul 10, 2007 2:12 am
Posts: 3
Location: Indore, India
object relational mapping means to map relational database in Objects.
so any one can answer my query, why do we need mapping of Relational Database into Java Object. And this Java Object need persistence overhead also.
What are the Major benefits of using java object.


Top
 Profile  
 
 Post subject: Need of ORM
PostPosted: Wed Jul 11, 2007 9:11 am 
Newbie

Joined: Tue Jul 10, 2007 10:30 am
Posts: 2
Hi

your question is basic one. and of course drive behind creation of Hibernate. It gives Object-Oriented sense to database layer. So that you design your application along with database objects in uniform way.
Previous it was like Object oriented way and then use sql injections to fire the query or in another way. but still we rely on JDBC to work on data.

In ORM, you work on objects in similar way and perform db operations without compromising DB rule or OOPS concepts.

Object persistence is to persist object onto storage. Common storage is DB. So to store an object, you store in session given by ORM, ORM session does everything for you. So it looks like object getting stored onto storage area.

Java is most popular OOPS language. It's popularity lies in it's implementation of OOPS concepts. Although it allows some overhead to perform some operations, but it does't compromise with concepts. That's why you will see java running very slow or taking too much memory, but doesn't allow non-OOPS.

BTW there are Hibernate flavors for non-java platforms.


Top
 Profile  
 
 Post subject: Re: Need of ORM
PostPosted: Thu Jul 12, 2007 5:54 am 
Newbie

Joined: Tue Jul 10, 2007 2:12 am
Posts: 3
Location: Indore, India
If the JVM stops or crashes, how did you think to respawn those objects on the next start?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.