load() method is used to retrive the persistence instance if we know the identiifier value. It will throw an unrecoverable exception if there is no matching database row. load() methods of Session used to take an Object Class and loads to the new Instatantiated instatance.
get() method will not throw an any exception if there is no matching database row. Simply it will return null.
reload() method used to re-load an object and all its collections at any time. This is useful when database triggers are used to initialize some of the properties of the object.
get() method will not throw an any exception if there is no matching database row. Simply it will return null.
reload() method used to re-load an object and all its collections at any time. This is useful when database triggers are used to initialize some of the properties of the object.
No comments:
Post a Comment