• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem using less than condition in Hibernate Filter

 
Ayan Dutta
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a sample filter in an hbm file say ,
<filter name="clauseFilter" condition="HDEL :=value" /> it is working fine .
But if I change the contion to condition="HDEL : <=value" ,then parsing error is occured . less than (i.e. '<')
or greater than (i.e. '>=' ) sign is closing the xml tag I guess. How can I mention less than or greater than in Hibernate Filter in hbm file ?
Regards,
Ayan
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try using "<" instead of ">" and ">" instead of ">"

Not sure if that will work, but a guess.

Mark
 
Ayan Dutta
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry , I did not get you .
Regards,
Ayan
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ayan Dutta:
Sorry , I did not get you .
Regards,
Ayan


Sorry, the web translated it to actual greater than and less than.

Try this, edit your post and look to see how you no longer see ">" but you see something like "& gt ;" without the spaces, this is greater than in html.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic