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
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|
Answer / ijaz ahmed
|Is This Answer Correct ?||6 Yes||2 No|
Can we declare an anonymous class as both extending a class and implementing an interface?
Difference between object and reference?
What is garbage collection? What is the process that is responsible for doing that in java?
Can we write any code after throw statement?
What are null interfaces? Give some examples?
describe synchronization in respect to multithreading? : Java thread
When the constructor of a class is invoked?
what is the use of private constructor in core java?
What do you know about the garbage collector in java?
What is diffrance between FINALIZE() & FINALLY ?
what is difference Between Core Java and advance java
Name the package that most of the AWT events that supports event-delegation model are defined?