title: Hiberate : HQL Case Insensitive search
body: <p>My requirement is to do a search in database based on a string.</p>
  
  <p>That particular string might be stored in uppercase, in database.</p>
  
  <p>So, I will have to do a case-insensitive search through HQL</p>
  
  <p>My current HQL is </p>
  
  <pre><code>String query = "from OrganizationContent where orgUrl=:url";
          Map&lt;String,Object&gt; parameterMap = new HashMap&lt;String,Object&gt;();
          parameterMap.put("url", organizationUrlInput.toLowerCase());
  </code></pre>
  
  <p>Only ".toLowerCase" I can do from java end. Now I need hibernate to fetch the data by doing a case-insensitive search.</p>
  
  <p>Appreciate your help on this friends</p>