title: HashMap cannot be cast to java.sql.Clob
body: <p>is there any way to cast HashMap to persist as CLOB in database
  let say we have
  HashMap&lt;String, String&gt; capitalCities = new HashMap&lt;String, String&gt;();</p>
  <pre><code>// Add keys and values (Country, City)
  capitalCities.put(&quot;England&quot;, &quot;London&quot;);
  capitalCities.put(&quot;Germany&quot;, &quot;Berlin&quot;);
  capitalCities.put(&quot;Norway&quot;, &quot;Oslo&quot;);
  capitalCities.put(&quot;USA&quot;, &quot;Washington DC&quot;);
  </code></pre>
  <p>i want to pass this Hasmap as a CLOB in Database via Stored Procedure</p>
  <p>eg
  callableStatement.setClob(1,(Clob)capitalCities ) - its not working</p>
  <p>is there any workaround ?</p>