Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Difference between flush() and commit() in hibernate?

Answers were Sorted based on User's Feedback



Difference between flush() and commit() in hibernate?..

Answer / aslam mohammed c l

Flushing the Session simply makes the data that is currently
in the session synchronized with what is in the database.
However, just because you have flushed, doesn't mean the
data can't be rolled back.

Commit does flush the session, but it also ends the unit of
work.

To summarize commit does two things,

1. Commit internally does flush
2. Ends the unit of work (makes the changes permanent).

Is This Answer Correct ?    21 Yes 2 No

Difference between flush() and commit() in hibernate?..

Answer / ijaz ahmed

Great answer!

Is This Answer Correct ?    6 Yes 2 No

Post New Answer

More Core Java Interview Questions

What are the differences between string, stringbuffer and stringbuilder?

0 Answers  


What is a flag and how does it work?

0 Answers  


Is arraylist a class in java?

0 Answers  


What do you know about the garbage collector?

0 Answers  


what is default constructor and parameterised constructor with example?

1 Answers   KPIT,


which method is used to know the status of the Thread?

9 Answers   Honeywell,


What is the difference between the program and the process?

1 Answers  


What is bool mean?

0 Answers  


do I need to use synchronized on setvalue(int)? : Java thread

0 Answers  


What is encapsulation in java?

0 Answers   IBS, NIIT,


What is the null?

0 Answers  


what is the difference between a java object reference and c++ pointer?

4 Answers  


Categories