application.yaml (JPA Section) #117
pwgit-create
announced in
File-Integrity-Database
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's break down each property in our
application.yamlunder thejpa:section to understand whatthey do:
Breakdown of each property
open-in-view: false
false, it means that the EntityManager isnot kept open across different requests. This can help avoid lazy loading exceptions but might lead to performance
issues if many entities are loaded per request.
true(the default in Spring), an EntityManager is kept open throughout a request and allows for lazyloading of collections/proxies.
database: postgresql
hibernate:
auto_quote_keyword: true
user,group, etc.). This can prevent conflicts with database reserved words.ddl-auto: update
update: Automatically updates the schema without dropping existing tables. Can be dangerous in productionas it might lead to unintended changes.
create,create-drop,validate, etc.jdbc:
time_zone: UTC
server's local time zone.
Please note
The Documentation post refers specifically to the File-Integrity-Scanner Spring App and not the database repository. The purpose of this was to show how JPA settings in a
application.properties/yamlfile affect a database such as the one in File-Integrity-Database.Beta Was this translation helpful? Give feedback.
All reactions