Permalink
Browse files

cleaned up for pushing to github

  • Loading branch information...
1 parent 5b99a0d commit dc525aa9849144f5cfa2dd153222d677702c4b8f @eltimn committed Jan 26, 2010
Showing with 40 additions and 9,722 deletions.
  1. +37 −0 README
  2. +1 −1 project/build.properties
  3. +0 −9,720 scamongo_wiki.html
  4. +2 −1 src/main/scala/com/eltimn/scamongo/Meta.scala
View
37 README
@@ -0,0 +1,37 @@
+See wiki for project info.
+
+To build you must use sbt
+http://code.google.com/p/simple-build-tool/
+
+Jar is available at:
+http://dl.dropbox.com/u/1154284/scamongo-0.1.jar
+
+
+Todo/Notes
+
+General
+* eval ?
+* query DSL: By, In, >=, etc.
+* Boolean, ~ObjectId, Date, Map query examples
+* master/slave, replication
+* ~MongoAuth example
+* Test all data types
+* Binary support
+* cursor vs array
+
+Document
+* save, update strict. Return Option.
+
+Record
+* ~BoxField & ~OptionField
+* String validators & ~LocaleField.localeList
+* callbacks, before/after update, before/after insert
+* save, saved_?, runSafe, try-catch
+* Map serializer
+* ~ListField (Map serializer, ~JsonObjectListField)
+* saveStrict, updateStrict methods
+* useSession example
+* ~PasswordField
+* ~MapField (Map serializer)
+* ~CaseClassField
+* ~MongoRefField fetch
View
2 project/build.properties
@@ -1,7 +1,7 @@
#Project Properties
#Tue Nov 03 08:35:36 CST 2009
project.name=scamongo
-project.organization=com.eltimn.scamongo
+project.organization=com.eltimn
sbt.version=0.5.6
scala.version=2.7.7
project.version=0.1
View
9,720 scamongo_wiki.html
0 additions, 9,720 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
3 src/main/scala/com/eltimn/scamongo/Meta.scala
@@ -35,7 +35,7 @@ private[scamongo] object Meta {
* These don't require a conversion and can be put directly into a DBObject
*/
val primitives = Set[Class[_]](classOf[String], classOf[Int], classOf[Long], classOf[Double],
- classOf[Float], classOf[Byte], classOf[BigInt], classOf[Boolean],
+ classOf[Float], classOf[Byte], classOf[BigDecimal], classOf[BigInt], classOf[Boolean],
classOf[Short], classOf[java.lang.Integer], classOf[java.lang.Long],
classOf[java.lang.Double], classOf[java.lang.Float],
classOf[java.lang.Byte], classOf[java.lang.Boolean],
@@ -53,6 +53,7 @@ private[scamongo] object Meta {
case x: Float => JDouble(x)
case x: Byte => JInt(BigInt(x))
case x: BigInt => JInt(x)
+ case x: BigDecimal => JString(x.toString) // this keeps the scale intact
case x: Boolean => JBool(x)
case x: Short => JInt(BigInt(x))
case x: String => JString(x)

0 comments on commit dc525aa

Please sign in to comment.