java - What are the benefits of HQL? -
the benefits of orm can map database tables java objects. if use hql write custom statements what's point? may write normal sql queries , use resultsets?
well, because impossible (or hard) write queries using other alternatives. need fallback hql alternative.
hql has, disadvantage, fact write strings it. highly recommended other strategies. but, sometimes, fastest way implement it.
i read post, extensively discussed hql already: jpa , hibernate - criteria vs. jpql or hql
Comments
Post a Comment