summaryrefslogtreecommitdiff
path: root/opendc-integration-jpa
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-29 09:46:14 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-29 09:46:14 +0200
commit6c78d011f735d14ac45f7eae9ab0d56fd17cc55e (patch)
tree022731a2260f9fca3b570f70a0a9c4562356bf5e /opendc-integration-jpa
parent681718e6e59d7b2e14fd7428daebe15647a12097 (diff)
Rename persistence unit to opendc-simulator
Also changes the environment variables of the run-command to reflect the standard followed in the rest of the OpenDC codebase.
Diffstat (limited to 'opendc-integration-jpa')
-rw-r--r--opendc-integration-jpa/src/main/kotlin/nl/atlarge/opendc/platform/JpaPlatformRunner.kt2
-rw-r--r--opendc-integration-jpa/src/main/resources/META-INF/persistence.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/opendc-integration-jpa/src/main/kotlin/nl/atlarge/opendc/platform/JpaPlatformRunner.kt b/opendc-integration-jpa/src/main/kotlin/nl/atlarge/opendc/platform/JpaPlatformRunner.kt
index 10e80260..d7282c27 100644
--- a/opendc-integration-jpa/src/main/kotlin/nl/atlarge/opendc/platform/JpaPlatformRunner.kt
+++ b/opendc-integration-jpa/src/main/kotlin/nl/atlarge/opendc/platform/JpaPlatformRunner.kt
@@ -40,7 +40,7 @@ val logger = KotlinLogging.logger {}
fun main(args: Array<String>) {
val threads = 1
val executorService = Executors.newFixedThreadPool(threads)
- val factory = Persistence.createEntityManagerFactory("opendc-frontend")
+ val factory = Persistence.createEntityManagerFactory("opendc-simulator")
val experiments = JpaExperimentManager(factory)
logger.info { "Waiting for enqueued experiments..." }
diff --git a/opendc-integration-jpa/src/main/resources/META-INF/persistence.xml b/opendc-integration-jpa/src/main/resources/META-INF/persistence.xml
index 5b01b38e..311772f4 100644
--- a/opendc-integration-jpa/src/main/resources/META-INF/persistence.xml
+++ b/opendc-integration-jpa/src/main/resources/META-INF/persistence.xml
@@ -27,7 +27,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
- <persistence-unit name="opendc-frontend">
+ <persistence-unit name="opendc-simulator">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<mapping-file>jpa/schema.xml</mapping-file>
<properties>