0
嗨,大家好我DOUT是我得到一個JSONObject和IM發送此對象作爲參數傳遞給nativeQuery:如何將json對象作爲參數發送給調用過程的本機查詢?
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"}
通過功能改變程序來解決和invoque與: – Ronaldo