title: How to check for an empty string in MyBatis?
body: <p>How do I check for an empty string in the dynamic SQL of MyBatis? I find the code below in the documentaiton, but I want to check for empty string, not null.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;select id="findActiveBlogWithTitleLike" parameterType="Blog" resultType="Blog"&gt;
      SELECT * FROM BLOG WHERE state = ‘ACTIVE’
      &lt;if test="title != null"&gt;
          AND title like #{title}
      &lt;/if&gt;
  &lt;/select&gt;
  </code></pre>