title: How to use Contains in Hibernate
body: <pre><code>session = sessionFactory.openSession();         
  Transaction tx = session.beginTransaction();
  String hql ="from CustomObjectId where CONTAINS(fileName,fileName)";
  Query query = session.createQuery(hql);
  query.setParameter("fileName", fileName);
  List file=query.list();
  tx.commit();
  </code></pre>
  
  <p>How can I search <code>CONTAINS</code>?</p>