-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-11116 - Improve the JPA bootstrapping section in the User Guide
(cherry picked from commit 2b30cab)
- Loading branch information
1 parent
45ea61b
commit d58f6d4
Showing
2 changed files
with
103 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
documentation/src/main/asciidoc/userguide/chapters/bootstrap/extras/persistence.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence | ||
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd" | ||
version="2.1"> | ||
|
||
<persistence-unit name="CRM"> | ||
<description> | ||
Persistence unit for Hibernate User Guide | ||
</description> | ||
|
||
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> | ||
|
||
<class>org.hibernate.documentation.userguide.Document</class> | ||
|
||
<properties> | ||
<property name="javax.persistence.jdbc.driver" | ||
value="org.h2.Driver" /> | ||
|
||
<property name="javax.persistence.jdbc.url" | ||
value="jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE" /> | ||
|
||
<property name="javax.persistence.jdbc.user" | ||
value="sa" /> | ||
|
||
<property name="javax.persistence.jdbc.password" | ||
value="" /> | ||
|
||
<property name="hibernate.show_sql" | ||
value="true" /> | ||
|
||
<property name="hibernate.hbm2ddl.auto" | ||
value="update" /> | ||
</properties> | ||
|
||
</persistence-unit> | ||
|
||
</persistence> |