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|
What is the difference between Static and final?
what is request processor?
Explain what access modifiers can be used for variables?
What is the GregorianCalendar class?
question on Thread synchronization
Java run-time system generates What class of exceptions?
Java Compiler is stored in JDK, JRE or JVM?
waht happens when a return type ,even void is specified for a constructor?
What is the difference between multitasking and multithreading in Java
What class is used to create Server side object?
What is the difference between Array and Hash Table?
What classes of exceptions, caught by a catch clause?