Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.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
sql的GORM标准_Sql_Hibernate_Grails_Gorm_Hibernate Criteria - Fatal编程技术网

sql的GORM标准

sql的GORM标准,sql,hibernate,grails,gorm,hibernate-criteria,Sql,Hibernate,Grails,Gorm,Hibernate Criteria,有人能帮我写一个等价的查询条件吗 | id | value1 | value2 | object_id | property_name ---------------------------------------------------------------------------------------- | | |

有人能帮我写一个等价的查询条件吗

| id |  value1                      | value2                | object_id | property_name
----------------------------------------------------------------------------------------
|    |                              |                       |           |
| 1  | []                           | []                    | 610531    | files
| 2  | Fri Mar 21 00:00:00 2014     | 2014-03-21 12:42:03.0 | 610531    | takenTime
| 3  | []                           | []                    | 610531    | files
| 4  | []                           | []                    | 610531    | files
| 5  | [files:[id:1]]               | []                    | 610531    | files
| 6  | [files:[id:1],[files:[id:2]] | [files:[id:1]]        | 610531    | files
| 7  | abc                          | (NULL)                | 610531    | test
| 8  | [otherfile:2]                | [otherfile:1]         | 610531    | otherfile
在这里,我有一个object_id,我只想提取行
(2,5,6,7,8)
(也就是说,我不想提取行,如果

property_name="files" value1="[]" and value2="[]"

我写条件查询时失败。

我自己找到了答案,如果有错误,请更正

    or {
            ne("propertyName","files");
            ne("value1","[]")
        }