大家好,我的问题是我有一个 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"}