answersLogoWhite

0


Best Answer

There are only two case: query will execute successfully or will throw an exception. Use exception handling and you will easily know the result.

If not satisfied, every query execution(saving or updation) return a acknodgement. saving return the generated primary key and updation or deletion return the number of records that has been updated. If the transaction fail due to an exception. You could easily know that the query executed successfully with the help of that acknoledgement

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: My interviewer asked how you know data is updated or saved or deleted in datatbase in hibernate session?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why you use session in hibernate?

Hi its me Riaz Molwani : Session is a bessically class of hibernate API which provide the interface between the presistent data objects store and the application . .


What is difference between Stand by and hibernate mode in Windows?

Stand by in windows is where the computer is still turned on and will resume when you want it to. Hibernate is where it saves your session (keeps what you are doing, yes everything) and then turns off the computer. When it is turned back on your session will be restored.


Which mode should you power down to if you want to conserve the most battery power while making allowance for the retrieval of the computing session at a later time?

Hibernate mode


Why do cookies need to be enabled to pass the CAPTCHA test?

Its like a temporary link that needs to be connected in order to transmit and receive data. Cookies can be deleted after your browser internet session at any time.


What is a period of time during which a legislature meets to conduct business?

A session of congress


A session of congress when both member of both houses meet together?

Joint session


How do you spell the word session?

SESSION


What is a webcam session?

Yes, a webcam session is what you have when you do a session with a known webcam. Pretty simple!


How to use JSession in Joomla?

The following code gets the current session then sets the value of the session variable 'sessionName' to 'helloworld'. $session =& JFactory::getSession(); $session->set( 'sessionName', 'helloworld' ); The session variable can be retrieved later in a similar way. $session =& JFactory::getSession(); echo 'Session variable sessionName has value: ' . $session->get( 'sessionName', 'empty' );


Difference between the session and cookie?

Cookies persist on your local computer, they are small text files that are stored there by websites and web applications that contain some basic information about you as a user. Sessions are application specific and persist only as long as you are actively engaged with a particular web site. For instance if you leave Amazon.com open do some shopping, then close the web browser before making any purchases, your session has ended, however the cookie that identifies your username still exists on your local computer.


A period of work in congress?

session session


What is a sentence for session?

a session car was ruined?