summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/resources/application.properties6
-rw-r--r--src/test/resources/application-test.properties12
2 files changed, 15 insertions, 3 deletions
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 42e8f9a..3600371 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1,12 +1,12 @@
spring.application.name=markr
-
# PostgreSQL Configuration
spring.datasource.url=jdbc:postgresql://localhost:5432/markr
spring.datasource.username=markr_prod
spring.datasource.password=CpfzDA3nR3jH9Ky4
spring.datasource.driver-class-name=org.postgresql.Driver
-
# Hibernate Configuration
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=update
-spring.jpa.show-sql=false \ No newline at end of file
+spring.jpa.show-sql=false
+# Disable Open Session in View
+spring.jpa.open-in-view=false \ No newline at end of file
diff --git a/src/test/resources/application-test.properties b/src/test/resources/application-test.properties
new file mode 100644
index 0000000..87666a1
--- /dev/null
+++ b/src/test/resources/application-test.properties
@@ -0,0 +1,12 @@
+# H2 Configuration
+spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
+spring.datasource.driver-class-name=org.h2.Driver
+spring.datasource.username=markr_test
+spring.datasource.password=DekqFAQnRIjH2Kz1
+spring.h2.console.enabled=true
+# Hibernate Configuration
+spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
+spring.jpa.hibernate.ddl-auto=update
+spring.jpa.show-sql=false
+# Disable Open Session in View
+spring.jpa.open-in-view=false \ No newline at end of file