sorm

Why do I get conflicting cross-version in sbt on one environment but not another?

回眸只為那壹抹淺笑 提交于 2019-11-29 10:40:22
I have an sbt project with these dependencies: libraryDependencies ++= Seq( "org.scalatra" %% "scalatra" % ScalatraVersion, "org.scalatra" %% "scalatra-scalate" % ScalatraVersion, "org.scalatra" %% "scalatra-specs2" % ScalatraVersion % "test", "ch.qos.logback" % "logback-classic" % "1.1.2" % "runtime", "org.eclipse.jetty" % "jetty-webapp" % "9.1.5.v20140505" % "container", "org.eclipse.jetty" % "jetty-plus" % "9.1.5.v20140505" % "container", "javax.servlet" % "javax.servlet-api" % "3.1.0", "org.sorm-framework" % "sorm" % "0.3.18", "com.h2database" % "h2" % "1.4.187", "org.fusesource.scalamd" %

How to model an entity with many children in Sorm?

你离开我真会死。 提交于 2019-11-29 08:03:10
I have a Workspace and Document entities, with the idea that a workspace can contain zero, one, or more documents. My first approach to model this was: case class Workspace(name: String, documents: Seq[Document]) but this will not scale well since my workspaces may contain many documents. Fortunately, my business requirement allow me to treat workspaces and documents separately (in the sense that when I have a workspace, there is no reason or invariant that forces me to consider all documents contained in it). Question: I am wondering: how would I model Workspace and Document in Sorm so that I

Why do I get conflicting cross-version in sbt on one environment but not another?

感情迁移 提交于 2019-11-28 03:50:40
问题 I have an sbt project with these dependencies: libraryDependencies ++= Seq( "org.scalatra" %% "scalatra" % ScalatraVersion, "org.scalatra" %% "scalatra-scalate" % ScalatraVersion, "org.scalatra" %% "scalatra-specs2" % ScalatraVersion % "test", "ch.qos.logback" % "logback-classic" % "1.1.2" % "runtime", "org.eclipse.jetty" % "jetty-webapp" % "9.1.5.v20140505" % "container", "org.eclipse.jetty" % "jetty-plus" % "9.1.5.v20140505" % "container", "javax.servlet" % "javax.servlet-api" % "3.1.0",