无法参考JPAApi

时间:2015-08-24 16:02:24

标签: hibernate playframework

这是我的build.sbt

name := "untitled"

version := "1.0"

lazy val `untitled` = (project in file(".")).enablePlugins(PlayJava)

scalaVersion := "2.11.7"

libraryDependencies ++= Seq(javaJpa.exclude("org.hibernate.javax.persistence", "hibernate-jpa-2.0-api"),
  "org.hibernate" % "hibernate-entitymanager" % "4.3.5.Final",
  javaJdbc , cache , javaWs , "mysql" % "mysql-connector-java" % "5.1.36")

unmanagedResourceDirectories in Test <+=  baseDirectory ( _ /"target/web/public/test" )  

我想将Hibernate与Play Framework 2.4.2一起使用。我的plugins.sbt:

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.2")

我试图访问JPAApi但是IDE并没有认识到它。知道我失踪的进口商品吗?

道歉,如果这听起来微不足道,但我只是花了几个小时试图找到无用的东西。

0 个答案:

没有答案