hujinxian / mybatisnet

Automatically exported from code.google.com/p/mybatisnet
0 stars 0 forks source link

isGreaterThan does not work with Enumerations #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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