In Studio, the graphical view can help to identify the structure for Parameter Types
output application/java
---
[{
key: '' as String,
typeClassifier: {
"type": '' as String,
customType: '' as String
}
} as Object {
class : "org.mule.extension.db.api.param.ParameterType"
}]
So, the XML to work needs to be something like:
<db:insert doc:name="Insert"
config-ref="Database_Config_Oracle"
queryTimeoutUnit="DAYS"
autoGenerateKeys="true"
parameterTypes="#[[{
key: 'ID' as String,
typeClassifier: {
'type': 'LONGNVARCHAR' as String,
customType: '' as String
}}]]">
<db:sql><![CDATA[#[ vars.db.query ]]]></db:sql>
<db:input-parameters><![CDATA[#[vars.db.inputParameters]]]></db:input-parameters>
<db:auto-generated-keys-column-names />
</db:insert>