Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New to hibernate

 
vikram Kesav
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.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
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.



 
Lalit Bhatt
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic