Permalink
Browse files

Fixed an Atom strictness bug and added some query stuff for mapper

  • Loading branch information...
1 parent e6bab09 commit 1ffac230fea785e221e9ecb2a1b106c324700a2b @dpp dpp committed Oct 17, 2011
@@ -1686,6 +1686,30 @@ object By {
}
}
+object By_>= {
+
+ import OprEnum._
+
+ def apply[O <: Mapper[O], T, U <% T](field: MappedField[T, O],
+ value: U) = Cmp[O, T](field, >=, Full(value), Empty, Empty)
+
+ def apply[O <: Mapper[O], T](field: MappedField[T, O], otherField:
+ MappedField[T, O]) = Cmp[O, T](field, >=, Empty, Full(otherField),
+ Empty)
+}
+
+object By_<= {
+
+ import OprEnum._
+
+ def apply[O <: Mapper[O], T, U <% T](field: MappedField[T, O],
+ value: U) = Cmp[O, T](field, <=, Full(value), Empty, Empty)
+
+ def apply[O <: Mapper[O], T](field: MappedField[T, O], otherField:
+ MappedField[T, O]) = Cmp[O, T](field, <=, Empty, Full(otherField),
+ Empty)
+}
+
object NotBy {
import OprEnum._
@@ -1883,7 +1883,7 @@ class LiftSession(private[http] val _contextPath: String, val uniqueId: String,
case text: Text => text
case unparsed: Unparsed => unparsed
- case a: Atom[Any] if a.getClass() == "scala.xml.Atom" => new Text(a.data.toString)
+ case a: Atom[Any] if a.getClass().getName() == "scala.xml.Atom" => new Text(a.data.toString)
case v => v
}

0 comments on commit 1ffac23

Please sign in to comment.