Hi i'm wondering about hibernatetemplate and session
if we look at those two example: ------------------------------------------------- this is some example about session: Query query = session.createQuery("select myrecord from " + "com.shoesobjects.MyRecord"); getHibernateTemplate().find( "from MyRecord where product_id=? ", productId);
------------------------------------ It is very easier and cleaner to work with hibernatetemplate, and i'm just wonder about what is advantages to use hibernatetemplate and why shouldn't use just session.(i know that hibernatetemplate use session internally.)
|