0

大家好,我的问题是我有一个 jsonobject,并且我将此对象作为参数发送到 nativeQuery:

Query query = entityManager
            .createNativeQuery("{call myprocedure(?)} ");
    query.setParameter(1, myjson);

我得到了以下错误:

10:54:06,362 WARN  [JDBCExceptionReporter] SQL Error: 907, SQLState: 42000
10:54:06,362 ERROR [JDBCExceptionReporter] ORA-00907 missing right parenthesis

我的 json 对象:

{"phone":4834378165,"observation":"","colaborator_open":"S","reason":"asdf","location_description":"","residence_number":"","colaborator_registration":901546,"amount":0,"street_id":"0","colaborator_type":"T","name":"client","solicitation_type":"I","is_printed":"N","subsidiary_type":5,"service_code":5930,"amount_informed":0,"staff_visit":"N"}
4

1 回答 1

0

解决了更改函数的过程并像这样调用:

 select  myFunction(?) from dual
于 2016-09-22T14:15:59.063 回答