Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

New to hibernate

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

I have just started learning hibernate and i want to understand how hibernate makes things simpler to the developer compare to JDBC in simple term.

Thanks in advance.
 
author and cow tipper
Posts: 5000
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate takes an object oriented approach to data. You develop your applications by thinking about 'objects,' and the Hibernate framework can then transform the data in your objects into database tables and columns. It's not a new idea. Object-Relational Mapping (ORM) frameworks have been around for a long time. Hibernate happens to be very well designed and easy to work with.

-Cameron McKenzie
 
vikram Kesav
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply - Cameron McKenzie.

I have started working on hibernate and got one confusion- I have fetched records from table using hibernate and updated one row of that table and again tried to fetch the same row from table in the same session but can't see the reflection on that row.

I came to know that hibernate use cache for holding all the data....do i need to refresh the session or cache to get the updated row....

Please help me.



 
Ranch Hand
Posts: 69
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you fetch the data again hibernate may not issue the query. If you want to see your updation going to database than flush the session.

See some hibernate tutorials at http://www.oyejava.com/tiki-index.php?page=Hibernate
 
And inside of my fortune cookie was this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic