Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Morphia use for Scala

Is it possible to use Morphia in Scala?

Are there any other lightweight ORMs for MongoDB that support scala?

like image 775
akshaykarthik Avatar asked Feb 20 '11 22:02

akshaykarthik


2 Answers

Check out Salat:

https://github.com/novus/salat

Salat uses pickled Scala signatures to serialize and deserialize case classes.

like image 135
rktoomey Avatar answered Sep 20 '22 14:09

rktoomey


Morphia is just a persistence layer based on mongo-java-driver that uses annotation in a JPA-style for object mapping. It should perfectly work with Scala.

Among the "native" Scala drivers (worth to mention that all of them are also based on mongo-java-driver), Rogue (developed by Foursquare) is the closest ideologically to Morphia (though it doesn't use annotations, which aren't considered to be Scala-idiomatic).

like image 28
Vasil Remeniuk Avatar answered Sep 23 '22 14:09

Vasil Remeniuk