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 |
What are wrapped classes?
Why java is call by value?
What are streams in java 8?
What is an object's lock and which object's have locks in java programming?
What is the major drawback of internal iteration over external iteration?
Why declare Main() inside the class in java ?
Why does java doesnot support multiple inheritance?
What do you mean by data type?
My application URL : http://localhost:8080/Application/Login.jsp. When a user enter this url in IE then, how it get Login.JSP Page exactly? what are the processes will happen from when we submit the URL to get Login.jsp?
what are the diffrences between interface and abstract class?
What is a prefix function.write down a code to compute prefix function.
Which sorting algorithm is in place?