Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2017-01-30 12:30:57 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
75add67569af2fbcb67c2e3ac1a228be72b57ce6
75add675
1 parent
20b0376a
Passage à 3 configurations de persistence.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
5 deletions
src/main/resources/META-INF/persistence.xml
src/main/resources/META-INF/persistence.xml
View file @
75add67
...
...
@@ -2,13 +2,13 @@
<persistence
version=
"2.0"
xmlns=
"http://java.sun.com/xml/ns/persistence"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
>
<persistence-unit
name=
"
h2
-pu"
transaction-type=
"JTA"
>
<persistence-unit
name=
"
development
-pu"
transaction-type=
"JTA"
>
<provider>
org.hibernate.jpa.HibernatePersistenceProvider
</provider>
<jta-data-source>
H2Database
</jta-data-source>
<exclude-unlisted-classes>
false
</exclude-unlisted-classes>
<properties>
<property
name=
"hibernate.hbm2ddl.auto"
value=
"create
-drop
"
/>
<property
name=
"hibernate.hbm2ddl.import_files"
value=
"import.sql"
/>
<property
name=
"hibernate.hbm2ddl.auto"
value=
"create"
/>
<property
name=
"
javax.persistence.
hibernate.hbm2ddl.import_files"
value=
"import.sql"
/>
<property
name=
"hibernate.hbm2ddl.import_files_sql_extractor"
value=
"org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor"
/>
<!-- DDL control OFF
<property name="hibernate.show_sql" value="true"/>
...
...
@@ -25,8 +25,26 @@
<property
name=
"hibernate.connection.CharSet"
value=
"utf8"
/>
<property
name=
"hibernate.connection.characterEncoding"
value=
"utf8"
/>
<property
name=
"hibernate.connection.useUnicode"
value=
"true"
/>
<property
name=
"hibernate.hbm2ddl.auto"
value=
"create-drop"
/>
<property
name=
"hibernate.hbm2ddl.import_files"
value=
""
/>
<property
name=
"hibernate.hbm2ddl.auto"
value=
"create"
/>
<property
name=
"javax.persistence.hibernate.hbm2ddl.import_files"
value=
""
/>
<property
name=
"hibernate.hbm2ddl.import_files_sql_extractor"
value=
"org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor"
/>
<!-- DDL control OFF
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
-->
</properties>
</persistence-unit>
<persistence-unit
name=
"production-pu"
transaction-type=
"JTA"
>
<provider>
org.hibernate.jpa.HibernatePersistenceProvider
</provider>
<jta-data-source>
productionDatabase
</jta-data-source>
<exclude-unlisted-classes>
false
</exclude-unlisted-classes>
<properties>
<property
name=
"hibernate.connection.CharSet"
value=
"utf8"
/>
<property
name=
"hibernate.connection.characterEncoding"
value=
"utf8"
/>
<property
name=
"hibernate.connection.useUnicode"
value=
"true"
/>
<property
name=
"hibernate.hbm2ddl.auto"
value=
"none"
/>
<property
name=
"javax.persistence.hibernate.hbm2ddl.import_files"
value=
""
/>
<property
name=
"hibernate.hbm2ddl.import_files_sql_extractor"
value=
"org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor"
/>
<!-- DDL control OFF
<property name="hibernate.show_sql" value="true"/>
...
...
Please
register
or
login
to post a comment