Permalink
Browse files

Closes #1099. Added NotLike

  • Loading branch information...
1 parent 0b5068b commit b057016b965581a9e6c44807d6e1fceee46a3ce7 lkuczera committed Aug 29, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 persistence/mapper/src/main/scala/net/liftweb/mapper/MetaMapper.scala
@@ -1418,6 +1418,7 @@ object OprEnum extends Enumeration {
val IsNull = Value(7, "IS NULL")
val IsNotNull = Value(8, "IS NOT NULL")
val Like = Value(9, "LIKE")
+ val NotLike = Value(10, "NOT LIKE")
}
sealed trait BaseIndex[A <: Mapper[A]] {
@@ -1662,6 +1663,11 @@ object Like {
Cmp[O, String](field, OprEnum.Like, Full(value), Empty, Empty)
}
+object NotLike {
+ def apply[O <: Mapper[O]](field: MappedField[String, O], value: String) =
+ Cmp[O, String](field, OprEnum.NotLike, Full(value), Empty, Empty)
+}
+
object By {
import OprEnum._

0 comments on commit b057016

Please sign in to comment.