title: Can't set named (or ordinal) parameters in SQL if inside a string
body: <p>Project settings are: Java 8, Hibernate 5.3.1, Oracle 18c</p>
  
  <p>Getting the following error when executing queries with named or ordinal parameters. Happens only if the parameters are inside a function </p>
  
  <blockquote>
    <p>select * from TABLE_PRIVILEGE a where ( (
    json_exists(a.DATA,'$?(@.businessId in :businessId)')) and (
    a.DATA."resource" = :resource ) and ( json_exists(a.DATA,'$?(@.actions
    in :actions)')) )</p>
  </blockquote>
  
  <p>When trying to set any of the parameters used in the function   </p>
  
  <blockquote>
    <p>Query#setParameter("businessId", value);</p>
  </blockquote>
  
  <p>an exception is thrown</p>
  
  <pre><code>java.lang.IllegalArgumentException: Could not locate named parameter [businessId], expecting one of [resource]
      at org.hibernate.query.internal.ParameterMetadataImpl.getNamedParameterDescriptor(ParameterMetadataImpl.java:218)
      at org.hibernate.query.internal.ParameterMetadataImpl.getQueryParameter(ParameterMetadataImpl.java:187)
      at org.hibernate.query.internal.QueryParameterBindingsImpl.resolveQueryParameter(QueryParameterBindingsImpl.java:460)
  </code></pre>
  
  <p>Same if in the native query we are using ordinal parameters</p>
  
  <blockquote>
    <p>select * from TABLE_PRIVILEGE a where ( (
    json_exists(a.DATA,'$?(@.businessId in ?1)')) and ( a.DATA.resource =
    ?2 ) and ( json_exists(a.DATA,'$?(@.actions in ?3)')) )</p>
  </blockquote>
  
  <pre><code>java.lang.IllegalArgumentException: Could not locate ordinal parameter [1], expecting one of [2]
        at org.hibernate.query.internal.ParameterMetadataImpl.getOrdinalParameterDescriptor(ParameterMetadataImpl.java:143)
        at org.hibernate.query.internal.ParameterMetadataImpl.getQueryParameter(ParameterMetadataImpl.java:193)
        at org.hibernate.query.internal.AbstractProducedQuery.setParameter(AbstractProducedQuery.java:509)
        at org.hibernate.query.internal.NativeQueryImpl.setParameter(NativeQueryImpl.java:608)
        at org.hibernate.query.internal.NativeQueryImpl.setParameter(NativeQueryImpl.java:57)
  </code></pre>