Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

Commit 6b36a26

Browse files
committed
modified persistence JPA and README to add "database.generation" variable to determine
whether or not JPA should create/alter tables in the schema on application startup Signed-off-by: Neal Ensor <[email protected]>
1 parent 109e02e commit 6b36a26

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ database.driver | the JDBC database driver to use
5050
database.url | the JDBC URL to access
5151
database.user | the database user (with create/alter schema permission)
5252
database.password | the user's password
53+
database.generation | JPA database table command; usually "create-or-extend-tables" or "none"
5354
serviceapi.host | base URL for validation services
5455
publishing.host | base URL for submitting final metadata to OSTI (via /submit API)
5556
datacite.user | (optional) DataCite user account name for registering DOIs

src/main/resources/META-INF/persistence.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<property name="javax.persistence.jdbc.user" value="${database.user}"/>
2121
<property name="javax.persistence.jdbc.driver" value="${database.driver}"/>
2222
<property name="javax.persistence.jdbc.password" value="${database.password}"/>
23-
<property name="eclipselink.ddl-generation" value="create-or-extend-tables"/>
23+
<property name="eclipselink.ddl-generation" value="${database.generation}"/>
2424
</properties>
2525
</persistence-unit>
2626
</persistence>

0 commit comments

Comments
 (0)