title: Hibernate criteria accepting %% value
body: <p>I am using the below Hibernate code to filter <code>workFlowName</code>.  </p>
  
  <pre><code>crt.add(Restrictions.like("workFlowName", workFlow, MatchMode.ANYWHERE));
  // crt is the criteria
  </code></pre>
  
  <p>The problem is when I pass the value to <strong>workFlow</strong> from web (TextBox).it fetching the value correctly (I am passing <strong><code>sym</code></strong> in text box if fetch 10 records.if i pass the same value like <strong><code>%sym%</code></strong> again it is fetching same record).</p>
  
  <p>Whether the criteria will omit when it see <code>%%</code> as argument?</p>