Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106-v23-03
backend
Commits
1036cd16
Commit
1036cd16
authored
2 years ago
by
Stian Lyng
Browse files
Options
Downloads
Patches
Plain Diff
change from jdbc to jpa
parent
eb60b345
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+4
-1
4 additions, 1 deletion
pom.xml
src/main/resources/application.properties
+10
-0
10 additions, 0 deletions
src/main/resources/application.properties
with
14 additions
and
1 deletion
pom.xml
+
4
−
1
View file @
1036cd16
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/application.properties
+
10
−
0
View file @
1036cd16
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment