title: Querydsl Like Surprise
body: <p>I have just dabbled into using Querydsl, and am thoroughly enjoying the improvement it brings to interacting with JPA.</p>
  
  <p>One remaining question I have is why do you have to wrap a <code>like</code> parameter with <code>%</code>?</p>
  
  <p>Have I improperly configured something? Considering there is a method for <code>starts/endsWith</code>, I assumed <code>like(str)</code> would automatically wrap my <code>str</code>. </p>
  
  <p>But to my surprise I needed to do this: <code>"%" + str + "%"</code> to get what I had expected. </p>
  
  <p>Why is that? Is there a better way?</p>