Skip to content
This repository
Browse code

Closes #1099. Added NotLike

  • Loading branch information...
commit b057016b965581a9e6c44807d6e1fceee46a3ce7 1 parent 0b5068b
Lukasz Kuczera authored August 29, 2011
6  persistence/mapper/src/main/scala/net/liftweb/mapper/MetaMapper.scala
@@ -1418,6 +1418,7 @@ object OprEnum extends Enumeration {
1418 1418
   val IsNull = Value(7, "IS NULL")
1419 1419
   val IsNotNull = Value(8, "IS NOT NULL")
1420 1420
   val Like = Value(9, "LIKE")
  1421
+  val NotLike = Value(10, "NOT LIKE")
1421 1422
 }
1422 1423
 
1423 1424
 sealed trait BaseIndex[A <: Mapper[A]] {
@@ -1662,6 +1663,11 @@ object Like {
1662 1663
   Cmp[O, String](field, OprEnum.Like, Full(value), Empty, Empty)
1663 1664
 }
1664 1665
 
  1666
+object NotLike {
  1667
+  def apply[O <: Mapper[O]](field: MappedField[String, O], value: String) =
  1668
+  Cmp[O, String](field, OprEnum.NotLike, Full(value), Empty, Empty)
  1669
+}
  1670
+
1665 1671
 object By {
1666 1672
   import OprEnum._
1667 1673
 

0 notes on commit b057016

Please sign in to comment.
Something went wrong with that request. Please try again.