Skip to content

Instantly share code, notes, and snippets.

View rktoomey's full-sized avatar

Rose Toomey rktoomey

View GitHub Profile
@rktoomey
rktoomey / console.scala
Created May 14, 2012 02:50 — forked from anonymous/TestNesting.scala
Salat nested case class with scala 2.9.1
rose@marzipan:~/workspace/salat (master)$ sbt
salat:master:0.0.8-SNAPSHOT> project salat-core
[info] Set current project to salat-core (in build file:/home/rose/workspace/salat/)
salat-core:master:0.0.8-SNAPSHOT> test:console
scala> import com.mongodb.casbah._
import com.mongodb.casbah._
scala> import com.novus.salat.grater
import com.novus.salat.grater
@rktoomey
rktoomey / SalatCustomContext
Created April 27, 2012 01:21 — forked from vhazrati/SalatCustomContext
SalatCustomContext Remapping
import org.scalatest.FunSuite
import com.novus.salat.annotations.Key
import org.bson.types.ObjectId
import org.specs2.specification.BeforeAfter
import org.scalatest.BeforeAndAfter
import com.novus.salat.dao.SalatDAO
import com.mongodb.casbah.MongoConnection
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
//import com.novus.salat.global._