Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DBS2_Übung8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
opitzju
DBS2_Übung8
Commits
f8c12aa3
Commit
f8c12aa3
authored
3 years ago
by
opitzju
Browse files
Options
Downloads
Patches
Plain Diff
Beispiel-persistance.xml hinzugefügt.
parent
f0a7bb4b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+46
-2
46 additions, 2 deletions
.gitignore
src/main/resources/META-INF/persistence.xml
+23
-0
23 additions, 0 deletions
src/main/resources/META-INF/persistence.xml
with
69 additions
and
2 deletions
.gitignore
+
46
−
2
View file @
f8c12aa3
/dbs2_uebung7.iml
# Logs and databases #
/.idea/
######################
*.log
# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
# Editor Files #
################
*~
*.swp
# Build output directies #
##########################
/target
*/target
/build
*/build
# IntelliJ specific files/directories #
#######################################
out
.idea
*.ipr
*.iws
*.iml
atlassian-ide-plugin.xml
# Eclipse specific files/directories #
######################################
.classpath
.project
.settings
.metadata
# NetBeans specific files/directories #
#######################################
.nbattrs
# Project Specific #
####################
/src/main/resources/config.properties
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/resources/META-INF/persistence.xml
0 → 100644
+
23
−
0
View file @
f8c12aa3
<persistence
xmlns=
"http://java.sun.com/xml/ns/persistence"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
version=
"2.0"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
>
<persistence-unit
name=
"movie"
>
<provider>
org.hibernate.jpa.HibernatePersistenceProvider
</provider>
<properties>
<property
name=
"javax.persistence.jdbc.driver"
value=
"oracle.jdbc.driver.OracleDriver"
/>
<property
name=
"javax.persistence.jdbc.url"
value=
"jdbc:oracle:thin:@dboracleserv.inform.hs-hannover.de:1521/db01"
/>
<property
name=
"javax.persistence.jdbc.user"
value=
""
/>
<property
name=
"javax.persistence.jdbc.password"
value=
""
/>
<property
name=
"hibernate.show_sql"
value=
"true"
/>
<property
name=
"hibernate.hbm2ddl.auto"
value=
"update"
/>
<!--
values:
validate: validate the schema, makes no changes to the database.
update: update the schema.
create: creates the schema, destroying previous data.
create-drop: drop the schema when the SessionFactory is closed explicitly, typically when the application is stopped.
none: does nothing
-->
</properties>
</persistence-unit>
</persistence>
\ No newline at end of file
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