Created
October 1, 2010 12:44
-
-
Save alaz/606155 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OptionalEmbeddedField[V](override val mongoFieldName: String, val g: T => Option[V], val p: Option[(T,Option[V]) => Unit]) | |
extends MongoScalar[V] with EmbeddedContent[V] with FieldModifyOp[V] with Optional[V] { | |
self: MongoField[V] with ObjectIn[V, QueryType] => | |
override val rep = parent.Represented.byOption(g, p) | |
override def canEqual(other: Any): Boolean = other.isInstanceOf[OptionalEmbeddedField[_]] | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment