• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

New to hibernate

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
That new kid is a freak. Show him this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic