java - How to add greater than/less than to Hibernate filters -


How can you add more or less than the situation on the hibernate filter specified in the hbm.xml file?

I am trying to add a filter to limit the collection to a specific date range:

  & lt; Filter name = "limitTalksByDateRange" condition = "talkstart & gt; =: tstart and talkstart  Unfortunately, it breaks XML parsing, I've tried backslash-escaping, "ge" and "take" and even "middle: turrets and: stars" Which is used in Hibernation is mentioned in the document. Nobody is doing any work, and if I can get a document that specifically depicts legitimate operators in the filter situation, then I will be devastated.   

Have you tried:

    & gt; Instead of   and  

and & amp; Gt; and & amp; Lt; Code> & lt; .

In addition to this, I had observed that there was no ': ' on the boundary variable, so it might:

    

Or this:

  & lt; Filters name = "limitTalksByDateRange" condition = "TurboTart and Tomorrow between Tirstrip" />  

will work better.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -