1.

What Is The Difference Between The Session.get() Method And The Session.load() Method?

Answer»

Both the session.get(..) and session.load() methods create a PERSISTENT OBJECT by LOADING the required object from the database. But if there was not such object in the database then the method session.load(..) throws an exception whereas session.get(&) returns NULL.

Both the session.get(..) and session.load() methods create a persistent object by loading the required object from the database. But if there was not such object in the database then the method session.load(..) throws an exception whereas session.get(&) returns null.



Discussion

No Comment Found