from : Hibernate In Action:The load() method is older; get() was added to Hibernate’s API due to userrequest. The difference is trivial:■ If load() can’t find the object in the cache or database, an exception isthrown. The load() method never returns null. The get() method returnsnull if the object Read More
posted @ 2012-06-04 03:06 庚武 Views(243) Comments(0) Diggs(0) Edit
Hibernate created a new language named Hibernate Query Language (HQL), the syntax is quite similar to database SQL language. The main difference between isHQL uses class name instead of table name, and property names instead of column name.HQL is extremely simple to learn and use, and the code is al Read More
posted @ 2012-06-04 02:28 庚武 Views(1431) Comments(0) Diggs(0) Edit