A GraphDB plugin for the Play 2 framework using the Tinkerpop blueprints stack.
Edit your Play2 project/Build.scala
import sbt._
import Keys._
import PlayProject._
object ApplicationBuild extends Build {
val appName = "MyPlayApp"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
"org.gwikzone" %% "play2-tinkerpop-plugin-orientdb" % "1.0-SNAPSHOT"
)
val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).
dependsOn(uri("git://github.com/gwik/play2-tinkerpop-plugin.git"))
}
Add this to your conf/play.plugins file, create it if it's not there already.
1000:org.gwikzone.play.tinkerpop.blueprints.orientdb.OrientBlueprintPlugin
package utils
import org.gwikzone.play.tinkerpop.blueprints.orientdb.OrientDB
object GraphDB extends OrientDB
Import GraphDB from this package in your application code. Then if you want to use an other graphDB say neo4j you just need to change the import in this and you're done.