Showing
1 changed file
with
23 additions
and
5 deletions
... | @@ -2,13 +2,13 @@ | ... | @@ -2,13 +2,13 @@ |
2 | <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" | 2 | <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" |
3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> | 4 | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> |
5 | - <persistence-unit name="h2-pu" transaction-type="JTA"> | 5 | + <persistence-unit name="development-pu" transaction-type="JTA"> |
6 | <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> | 6 | <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> |
7 | <jta-data-source>H2Database</jta-data-source> | 7 | <jta-data-source>H2Database</jta-data-source> |
8 | <exclude-unlisted-classes>false</exclude-unlisted-classes> | 8 | <exclude-unlisted-classes>false</exclude-unlisted-classes> |
9 | <properties> | 9 | <properties> |
10 | - <property name="hibernate.hbm2ddl.auto" value="create-drop" /> | 10 | + <property name="hibernate.hbm2ddl.auto" value="create" /> |
11 | - <property name="hibernate.hbm2ddl.import_files" value="import.sql"/> | 11 | + <property name="javax.persistence.hibernate.hbm2ddl.import_files" value="import.sql"/> |
12 | <property name="hibernate.hbm2ddl.import_files_sql_extractor" value="org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor" /> | 12 | <property name="hibernate.hbm2ddl.import_files_sql_extractor" value="org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor" /> |
13 | <!-- DDL control OFF | 13 | <!-- DDL control OFF |
14 | <property name="hibernate.show_sql" value="true"/> | 14 | <property name="hibernate.show_sql" value="true"/> |
... | @@ -25,8 +25,26 @@ | ... | @@ -25,8 +25,26 @@ |
25 | <property name="hibernate.connection.CharSet" value="utf8"/> | 25 | <property name="hibernate.connection.CharSet" value="utf8"/> |
26 | <property name="hibernate.connection.characterEncoding" value="utf8"/> | 26 | <property name="hibernate.connection.characterEncoding" value="utf8"/> |
27 | <property name="hibernate.connection.useUnicode" value="true"/> | 27 | <property name="hibernate.connection.useUnicode" value="true"/> |
28 | - <property name="hibernate.hbm2ddl.auto" value="create-drop" /> | 28 | + <property name="hibernate.hbm2ddl.auto" value="create" /> |
29 | - <property name="hibernate.hbm2ddl.import_files" value=""/> | 29 | + <property name="javax.persistence.hibernate.hbm2ddl.import_files" value=""/> |
30 | + <property name="hibernate.hbm2ddl.import_files_sql_extractor" value="org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor" /> | ||
31 | + <!-- DDL control OFF | ||
32 | + <property name="hibernate.show_sql" value="true"/> | ||
33 | + <property name="hibernate.format_sql" value="true"/> | ||
34 | + --> | ||
35 | + </properties> | ||
36 | + </persistence-unit> | ||
37 | + | ||
38 | + <persistence-unit name="production-pu" transaction-type="JTA"> | ||
39 | + <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> | ||
40 | + <jta-data-source>productionDatabase</jta-data-source> | ||
41 | + <exclude-unlisted-classes>false</exclude-unlisted-classes> | ||
42 | + <properties> | ||
43 | + <property name="hibernate.connection.CharSet" value="utf8"/> | ||
44 | + <property name="hibernate.connection.characterEncoding" value="utf8"/> | ||
45 | + <property name="hibernate.connection.useUnicode" value="true"/> | ||
46 | + <property name="hibernate.hbm2ddl.auto" value="none" /> | ||
47 | + <property name="javax.persistence.hibernate.hbm2ddl.import_files" value=""/> | ||
30 | <property name="hibernate.hbm2ddl.import_files_sql_extractor" value="org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor" /> | 48 | <property name="hibernate.hbm2ddl.import_files_sql_extractor" value="org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor" /> |
31 | <!-- DDL control OFF | 49 | <!-- DDL control OFF |
32 | <property name="hibernate.show_sql" value="true"/> | 50 | <property name="hibernate.show_sql" value="true"/> | ... | ... |
-
Please register or login to post a comment