Questions tagged [salat]

Salat is a bi-directional Scala case class serialization library that leverages MongoDB's `DBObject` (which uses BSON underneath) as its target format.

The Salat project focuses on speed and simplicity of serializing case classes to and from target formats.

Salat is not a fully-fledged ORM and does not attempt to match the flexibility, compability or functionality of an ORM that would let you define relationships between classes, provide a query language, or serialize/deserialize every collection type known to Java or Scala.

109 questions
0
votes
1 answer

Salat and Embeded MongoDb Documents

I have a case class that is made up of 2 embeded documents, one of which is a list. I am having some problems retriving the items in the list. Please see my code below: package models import play.api.Play.current import com.novus.salat._ import…
DrWolfe
  • 159
  • 4
  • 13
0
votes
1 answer

Play! Scala Template Engine and Sessions

I would like a user in my web application to make a post. The post will contain his username to indicate he posted it. How would I do this? UPDATE! This my working code Please see my code below: def createlisting = isAuthenticated { username…
DrWolfe
  • 159
  • 4
  • 13
0
votes
1 answer

Can deserialize avros to Scala case-classes from in-memory, but why not from files? Record can't be cast to case class?

I'm trying to use Salat-Avro to serialize and deserialize Scala case classes. I can serialize and deserialize fine in memory, but I can only serialize to files; I can't deserialize form file yet. Why won't my DatumReader succeed when reading from a…
Julian Peeters
  • 853
  • 1
  • 6
  • 19
-1
votes
1 answer

Scala Salat BasicDBObject cannot be cast to

I've spent so much time and still don't understand what the problem here. So I have a collection that data looks like: { "_id" : "someId", "employment" : { "data" : [ { "retrieved" : { "$date" : "2015-03-12T14:39:41.214Z"} , "value" : { "city"…
invis
  • 1,078
  • 2
  • 14
  • 26
1 2 3 4 5 6 7
8