title: How to add greater than/less than to Hibernate filters
body: <p>How can you add greater than or less than symbols to the condition on a Hibernate filter specified in the hbm.xml file?</p>
  
  <p>I am trying to add a filter to limit the collection to a specific date range:</p>
  
  <pre><code>&lt;filter name="limitTalksByDateRange" condition="talkstart &gt;= :tstart and talkstart &lt;= :tend" /&gt;
  </code></pre>
  
  <p>Unfortunately this breaks the XML parsing. I've tried backslash-escaping, "ge" and "le" and even "between :tstart and :tend" which is mentioned in the Hibernate documentation. None has worked, and I'll be damned if I can find any documentation whatsoever that specifically delineates the valid operators in the filter condition.</p>