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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -