resolvers += "dynamodb-scala" at "http://dl.bintray.com/onzo/maven"
libraryDependencies += "com.onzo" %% "dynamodb-scala" % "0.4.0"
// for shapeless snapshot 2.3.0
resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
implicit object forumSerializer extends Table[Forum](Forum.tableName) {
import shapeless._
def name = PrimaryKey[String]("Name")
def category = Key[String]("Category")
def threads = Key[Long]("Threads")
def messages = Key[Long]("Messages")
def views = Key[Long]("Views")
override val * = (name :: category :: threads :: messages :: views :: HNil).as[Forum]
}
more examples in test