diff --git a/pom.xml b/pom.xml index 8f9b9d6a8bb4f61b2498506928cd7380ceef7908..aa4fe9053d528c6902194c7e6aed8cbdc1ee3079 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,10 @@ <artifactId>h2</artifactId> <scope>runtime</scope> </dependency> - + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-data-jpa</artifactId> + </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-oauth2-resource-server</artifactId> diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index dced60aeaf842055576077ca8aa8073107867656..bb3cf470579a57e522db1b27120d6e413feb84a2 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -5,6 +5,16 @@ spring.datasource.username=smartmat_user spring.datasource.password=Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC spring.datasource.driver-class-name=org.postgresql.Driver +# jpa settings +spring.jpa.show-sql=true + +## Hibernate Properties +# The SQL dialect makes Hibernate generate better SQL for the chosen database +spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect + +# Hibernate ddl auto (create, create-drop, validate, update) +spring.jpa.hibernate.ddl-auto = update + ## info # Hostname: dpg-cgv5710dh87i4q0fd1b0-a