CrOrc / mybatisnet

Fork from code.google.com/p/mybatisnet. Time to start fixing issues.
5 stars 6 forks source link

isGreaterThan does not work with Enumerations #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
MyBatis.NET 1.6.2

the operator isGreaterThan doesn't work when used with enummerations
i have the snippet bellow in a dynamic statement 

<isGreaterThan property="Status" compareValue="-1"  prepend="AND">
          STATUS = #Status#
</isGreaterThan>

the condition is evaluted as true even if i set the Status property as 
ProblemeStatus.None( equivalent to -1)

Original issue reported on code.google.com by anouar...@gmail.com on 23 Apr 2011 at 5:32