salat-core


License

License

GroupId

GroupId

com.novus
ArtifactId

ArtifactId

salat-core_2.11
Last Version

Last Version

1.9.9
Release Date

Release Date

Type

Type

jar
Description

Description

salat-core
salat-core
Project URL

Project URL

https://github.com/novus/salat
Project Organization

Project Organization

com.novus

Download salat-core_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.novus/salat-core_2.11/ -->
<dependency>
    <groupId>com.novus</groupId>
    <artifactId>salat-core_2.11</artifactId>
    <version>1.9.9</version>
</dependency>
// https://jarcasting.com/artifacts/com.novus/salat-core_2.11/
implementation 'com.novus:salat-core_2.11:1.9.9'
// https://jarcasting.com/artifacts/com.novus/salat-core_2.11/
implementation ("com.novus:salat-core_2.11:1.9.9")
'com.novus:salat-core_2.11:jar:1.9.9'
<dependency org="com.novus" name="salat-core_2.11" rev="1.9.9">
  <artifact name="salat-core_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.novus', module='salat-core_2.11', version='1.9.9')
)
libraryDependencies += "com.novus" % "salat-core_2.11" % "1.9.9"
[com.novus/salat-core_2.11 "1.9.9"]

Dependencies

compile (4)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.2
com.novus : salat-util_2.11 jar 1.9.9
org.mongodb : casbah-core_2.11 jar 2.7.1
org.json4s : json4s-native_2.11 jar 3.2.9

test (6)

Group / Artifact Type Version
commons-lang : commons-lang jar 2.6
org.specs2 : specs2_2.11 jar 2.3.11
ch.qos.logback : logback-core jar 1.0.9
ch.qos.logback : logback-classic jar 1.0.9
org.mongodb : casbah-commons_2.11 jar 2.7.1
org.mongodb : casbah-commons_2.11 jar 2.7.1

Project Modules

There are no modules declared in this project.

Stories in Ready

Salat

Salat is a simple serialization library for case classes.

Salat currently supports bidirectional serialization for:

  • MongoDB's DBObject (using casbah)
  • JSON (using JSON4S)
  • maps

Goals

Simplicity. Flexibility. Consistency.

Your model there and back again should just work.

Get Salat

Salat publishes snapshots and releases to OSS Sontatype.

Stable Release

Available for Scala 2.10 and 2.11. Based on Casbah 2.7.1.

"com.novus" %% "salat" % "1.9.9"

Release Notes

Snapshot

Build Status

Available for Scala 2.10 and 2.11. Based on Casbah 2.7.1.

"com.novus" %% "salat" % "2.0.0-SNAPSHOT"

Release Notes (In Progress)

Legacy support

Please remove all references to repo.novus.com from your build files. After 0.0.8, Salat will be hosted exclusively by Sonatype.

If you are not using sbt 0.11.2+, explicitly add OSS Sonatype to your resolvers:

resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

Scala 2.9.3

Based on Casbah 2.7.0.

"com.novus" %% "salat" % "1.9.7"

Scala 2.9.2

Based on Casbah 2.6.4.

"com.novus" %% "salat" % "1.9.5"

Scala 2.8.1

Based on Casbah 2.1.5-1.

"com.novus" %% "salat" % "0.0.8"

Release Notes

Play 2 plugin

Are you using Play framework? Make sure to see our Play support wiki page, and check out Leon Radley's plugin at leon/play-salat.

Documentation

See the wiki and the mailing list.

What does Salat support?

See Supported Types.

What doesn't Salat support?

We don't have the resources to support everything. Here are some things Salat doesn't do:

  • Java compatibility
  • non-case classes
  • type aliases
  • nested inner classes
  • varags
  • arrays
  • multiple constructors
  • tuples
  • Option containing a collection (see collection support for workarounds)
  • relationship management like a traditional ORM

How does Salat work?

Salat uses the Product trait implemented by case classes with the hi-fi type information found in pickled Scala signatures.

Details are thin on the ground, but here's where we got started:

com.novus

Novus

Versions

Version
1.9.9
1.9.8