2010年1月15日

Difference between Hibernate's get() and load()

If load() can’t find the object in the cache or database, an exception is
thrown. The load() method never returns null. The get() method returns
null if the object can’t be found.

没有评论: