title: threw an unexpected exception: org.hibernate.QueryException: unexpected char: '@'
body: <p>This query is working fine:</p>
  
  <pre><code>SELECT *
  FROM public.mynotes
  WHERE to_tsvector('russian', atext) @@ plainto_tsquery('russian', 'some phrase');
  </code></pre>
  
  <p>I have a method with same query string:</p>
  
  <pre><code>String qString = "from MynotesEntity where to_tsvector (" +
                   lang + ", atext) @@ plainto_tsquery(" +
                   lang + ", " + phrase + ")";
  Query query = session.createQuery(qString);
  mynotesEntityList = query.list();
  </code></pre>
  
  <p>double symbol @ "@@" is marked by red line, but application is run on.</p>
  
  <p>When app is run on, i get a exception like this:</p>
  
  <blockquote>
    <p>threw an unexpected exception: org.hibernate.QueryException: unexpected char: '@' [from ru.javastudy.gwtPersistence.shared.MynotesEntity where to_tsvector ('russian', atext) @@ plainto_tsquery('russian', 'some phrase')]</p>
  </blockquote>
  
  <p>can anybody help me? :(</p>