Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-11174 - Document that XML file mappings can reside outside of JAR
(cherry picked from commit 8bd6cf6)
- Loading branch information
1 parent
e6f55d2
commit 8d50d56
Showing
3 changed files
with
75 additions
and
1 deletion.
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-external.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> | ||
|
||
<mapping-file>file:///etc/opt/app/mappings/orm.xml</mapping-file> | ||
|
||
<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> |
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