Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.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
Java HQL查询使用postgres选择xpath_Java_Spring_Spring Data Jpa_Postgresql 9.4_Jpa 2.1 - Fatal编程技术网

Java HQL查询使用postgres选择xpath

Java HQL查询使用postgres选择xpath,java,spring,spring-data-jpa,postgresql-9.4,jpa-2.1,Java,Spring,Spring Data Jpa,Postgresql 9.4,Jpa 2.1,我有以下疑问 select coalesce(array_length(xpath('/packet/presentation/set/Data/Biometric/Record', xmlparse(content payload)), 1), 0) as table_count, punch_count from udm_device_upload_file where punch_count = 0 and attestation_id is null 我想把这个查询转换成HQ

我有以下疑问

select coalesce(array_length(xpath('/packet/presentation/set/Data/Biometric/Record', xmlparse(content payload)), 1), 0) as table_count, punch_count
    from udm_device_upload_file where punch_count = 0 and attestation_id is null 
我想把这个查询转换成HQL查询,但是我得到了一个错误。因为在我的查询中有一些函数,例如
xpath
xmlparse
array\u length
,所以是否可以将其转换

HQL查询:

select upf.punchCount, coalesce(array_length(xpath('/packet/presentation/set/Data/Biometric/Record', xmlparse(content upf.payload)), 1), 0) as upf.bioMetricCount"
                        + " from UploadFile upf where upf.punchCount=:punchCount and upf.attestationId IS NULL