I m using Hibernate 3.0. I am little new to hibernate. For getting the data from database, i am using DetachedCriteria and also HQL(Hibernate Query Language). Difference between HQL and DetachedCriteria.
I want to know that in which situation i use DetachedCriteria
and in which situation i use HQL?
and also tell what is the difference between them and drawbacks over each other?