当我们必须使用
createQuery(String), createNamedQuery(String), createNativeQuery(String)
在Hibernate中,它们之间有什么区别?
createQuery:
http://docs.jboss.org/hibernate/core/3.6/reference/zh- CN/html/objectstate.html#objectstate- querying
http://docs.jboss.org/hibernate/core/3.6/reference/zh- CN/html/queryhql.html
createNamedQuery:
http://www.mkyong.com/hibernate/hibernate-named-query- examples/
http://www.javalobby.org/java/forums/m91885316.html
createNativeQuery:
http://docs.jboss.org/hibernate/core/3.6/reference/zh- CN/html/querysql.html