Difference between flush() and commit() in hibernate?
Answers were Sorted based on User's Feedback
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 |
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea
Can constructor return value?
What is the base class for error and exception?
Explain the meaning of java applet.
What are the steps in the jdbc connection?
Can we declare an anonymous class as both extending a class and implementing an interface?
8 Answers College School Exams Tests, JVA, TCS, Wipro,
What is a buffer in java?
What is meant by inheritance and what are its advantages?
How does multithreading take place on a computer with a single cpu?
How do you check if a string is lexicographically in java?
What is io stream in java?
What is the difference between applet and application?