InterviewSolution
Saved Bookmarks
| 1. |
What Is Difference Between Session.get() And Session.load()? |
|
Answer» Both Session.GET() and Session.Load() method create a persistent object by loading the REQUIRED object from the database. But if there was not an object in database, then ‘Load’ method THROWS an exception where as Get method RETURNS null. Both Session.Get() and Session.Load() method create a persistent object by loading the required object from the database. But if there was not an object in database, then ‘Load’ method throws an exception where as Get method returns null. |
|