adspace
What is difference between session get() and load() method in hibernate?
Answer Posted / Babita Baghel
Session's get() method returns an object instance immediately, if it exists in the session cache or retrieves the object from the database. Session's load() method only loads the primary key data from the database; the object itself will be initialized and populated with data only when you try to access its properties.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers