• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about persistance

 
madhuchilipi reddy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am want clear cut information about persistance,lazy loading and hibernate disadvantges
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"persistence" = storing data somewhere. What else do you want to know?

"lazy loading" = loading an associated object from the persistent store only when it is accessed. For example, if a Person object has an associated Address, the Address would only be loaded from the database when did something like person.getAddress().getPostCode(). The alternative would be to fetch the address data up front, which would mean you'd need to know before you got an object what you wanted to do with it.

Hibernate disadvantges. This could be a long and contentious topic, and I'd be repeating much of what has been posted in this forum many times before. ORMs have disadvantages, and they have advantages like all software. Have a sreach through this forum, see what others have said. And try Hibernate for yourself.
 
Pj Murray
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Sturrock:

Hibernate disadvantges. This could be a long and contentious topic, and I'd be repeating much of what has been posted in this forum many times before. ORMs have disadvantages, and they have advantages like all software. Have a sreach through this forum, see what others have said. And try Hibernate for yourself.


There is no 'one size fits all' solution to persistence - so you need to figure out your requirements before choosing a specific problem.

You could start by deciding your persistence strategy (link below to a blog on the subject):

http://www.codefutures.com/weblog/andygrove/archives/2005/01/choosing_a_java.html


You can assume that Hibernate is in widespread use and there's technical support available from JBoss after deployment - so it is a safe choice if it meets your specific requirements.

When you are reading the postings on Hibernate, you need to asses if the person is neutral or an advocate (for example, I provide my company affiliation so it's possible to see that I work for company that makes money on a Hibernate-related product).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic