No Persistence provider for EntityManager named defaultPersistenceUnit
db { default { driver=com.mysql.jdbc.Driver url="jdbc:mysql://localhost/dbname" username="root" password="secret" jndiName=DefaultDS logSql=true }}jpa.default=defaultPersistenceUnit
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd" version="2.1"> <persistence-unit name="defaultPersistenceUnit" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> <non-jta-data-source>DefaultDS</non-jta-data-source> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/> </properties> </persistence-unit></persistence>
libraryDependencies ++= Seq( javaCore, javaJdbc, javaJpa.exclude("org.hibernate.javax.persistence", "hibernate-jpa-2.0-api"), javaWs, "mysql" % "mysql-connector-java" % "5.1.38", "org.hibernate" % "hibernate-entitymanager" % "5.1.0.Final", "org.hibernate" % "hibernate-java8" % "5.1.0.Final", "org.hibernate.javax.persistence" % "hibernate-jpa-2.1-api" % "1.0.0.Final")
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/ec628355-9fce-441b-9cd3-8be29f5bd41d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/ec628355-9fce-441b-9cd3-8be29f5bd41d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.