Skip to content

Commit 9c71447

Browse files
committed
Explicitly reference JPA entities
1 parent b9cdae3 commit 9c71447

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

frameworks/Java/play2-java/play2-java-jpa-hikaricp/conf/META-INF/persistence.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<persistence-unit name="defaultPersistenceUnit" transaction-type="RESOURCE_LOCAL">
77
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
88
<non-jta-data-source>DefaultDS</non-jta-data-source>
9+
<class>models.Fortune</class>
10+
<class>models.World</class>
911
<properties>
1012
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
1113
</properties>

frameworks/Java/play2-java/play2-java-jpa-hikaricp/conf/application.conf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,3 @@ dbplugin=disabled
7272
# You can disable evolutions if needed
7373
evolutionplugin=disabled
7474

75-
# Ebean configuration
76-
# ~~~~~
77-
# You can declare as many Ebean servers as you want.
78-
# By convention, the default server is named `default`
79-
#
80-
# ebean.default="models.*"
81-

0 commit comments

Comments
 (0)