title: JPQL LIKE expression on enum
body: <p>Can JPQL execute LIKE expressions against enums?  </p>
  
  <p>If I have an entity Foo with an enum field bar I can execute the following in MySQL(bar is stored as a MySQL enum)...</p>
  
  <pre><code>SELECT * FROM Foo WHERE `bar` LIKE '%SUFFIX'
  </code></pre>
  
  <p>However, the corresponding query in JPQL...</p>
  
  <pre><code>SELECT f FROM Foo f WHERE f.bar LIKE '%SUFFIX'
  </code></pre>
  
  <p>...complains that...</p>
  
  <pre><code>Parameter value [%SUFFIX] was not matching type [com.example.Foo$EnumType] 
  </code></pre>