错误:函数json_query(jsonb,unknown)不存在

时间:2019-09-27 06:02:00

标签: java json jpa json-query

我希望使用下面的查询仅提取业务json对象,但它给出了以上错误。我尝试使用json_query(json,path)格式,但是它给出了此语法错误。path参数显示为unknown。< / p>

JPA查询

      @Query(value="Select json_query(case_data,'$.business') from onboarding_cases where case_id=?1", nativeQuery = true)
            String findByCaseAttrib(BigInteger caseId);  

JSON文件: 我为此使用的json文件

{
    "business": {
        "transactions": [
            "domesticElectronicPayments"
        ],
        "applicationId": 12345,
        "ongoingIncome": {
            "externalFunding": {
                "name": "ABNCDEFG",
                "country": "BA",
                "reliance": "withinOneYear",
                "relianceNever": "Reliance never"
            },
            "bankOrBusinessLoan": {
                "country": "BA"
            },
            "cashflowFromBusinessOperations": false
        },
       "financials":null

}

0 个答案:

没有答案