Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hibernate 如何使用HQL实现以下sql查询?_Hibernate_Hql - Fatal编程技术网

Hibernate 如何使用HQL实现以下sql查询?

Hibernate 如何使用HQL实现以下sql查询?,hibernate,hql,Hibernate,Hql,我有下面的sql查询,我需要使用HQL来适应它 A是作者,B是书的作者,他有很多书 SQL: 如果您能帮助将上述sql转换为HQL,我们将不胜感激。您尝试过吗 order by a.bookNbr desc, coalesce(b.auth_name, b.last_name + " " + b.first_name)) 看看这个- order by a.bookNbr desc, coalesce(b.auth_name, b.last_name + " " + b.first_name))

我有下面的sql查询,我需要使用HQL来适应它

A是作者,B是书的作者,他有很多书

SQL:

如果您能帮助将上述sql转换为HQL,我们将不胜感激。

您尝试过吗

order by a.bookNbr desc, coalesce(b.auth_name, b.last_name + " " + b.first_name))
看看这个-
order by a.bookNbr desc, coalesce(b.auth_name, b.last_name + " " + b.first_name))