diff --git a/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml b/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml index 584aac1d0d6f56e8c1914fc82460e8ab6a600d16..ac9472525aa26a2a1a01864ff851aaeece715a71 100644 --- a/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml +++ b/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml @@ -12,7 +12,7 @@ The <code>persistence.xml</code> file configures at least one persistence unit; each unit must have a unique name. --> - <persistence-unit name="strategy_drop-and-create"> + <persistence-unit name = "strategy_drop-and-create"> <!-- Hibernate will scan your classpath for mapped classes and add them automatically @@ -36,10 +36,10 @@ <!-- JDBC database connection parameter --> - <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/> - <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/hdm?useSSL=false"/> - <property name="javax.persistence.jdbc.user" value="hdmuser"/> - <property name="javax.persistence.jdbc.password" value="XYZ"/> + <property name = "javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/> + <property name = "javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/hdm?useSSL=false"/> + <property name = "javax.persistence.jdbc.user" value="hdmuser"/> + <property name = "javax.persistence.jdbc.password" value="XYZ"/> <!-- The JPA engine should drop and re-create the SQL schema in the database @@ -47,22 +47,23 @@ you want to work with a clean database for every test run. --> <property - name="javax.persistence.schema-generation.database.action" + name = "javax.persistence.schema-generation.database.action" value="drop-and-create"/> <!-- When printing SQL in logs, let Hibernate format the SQL nicely and generate comments into the SQL string so we know why Hibernate executed the SQL statement. --> - <property name="hibernate.format_sql" value="true"/> - <property name="hibernate.use_sql_comments" value="true"/> + <property name = "hibernate.show_sql" value = "true" /> + <property name = "hibernate.format_sql" value="true"/> + <property name = "hibernate.use_sql_comments" value="true"/> <!-- Choose Mysql's innodb backend --> - <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" /> + <property name = "hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" /> <!-- Enable Hibernate scanning for entity classes and adding them automatically but not for hbm.xml files. --> - <property name="hibernate.archive.autodetection" value="class"/> + <property name = "hibernate.archive.autodetection" value="class"/> </properties> </persistence-unit> @@ -70,26 +71,27 @@ <!-- The subsequent persistence unit won't modify the database's schema javax.persistence.schema-generation.database.action=none --> - <persistence-unit name="strategy_none"> + <persistence-unit name = "strategy_none"> <exclude-unlisted-classes>false</exclude-unlisted-classes> <properties> - <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/> - <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/hdm?useSSL=false"/> - <property name="javax.persistence.jdbc.user" value="hdmuser"/> - <property name="javax.persistence.jdbc.password" value="XYZ"/> + <property name = "javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/> + <property name = "javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/hdm?useSSL=false"/> + <property name = "javax.persistence.jdbc.user" value="hdmuser"/> + <property name = "javax.persistence.jdbc.password" value="XYZ"/> <property - name="javax.persistence.schema-generation.database.action" + name = "javax.persistence.schema-generation.database.action" value="none"/> - <property name="hibernate.format_sql" value="true"/> - <property name="hibernate.use_sql_comments" value="true"/> + <property name = "hibernate.show_sql" value = "true" /> + <property name = "hibernate.format_sql" value="true"/> + <property name = "hibernate.use_sql_comments" value="true"/> - <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" /> + <property name = "hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" /> - <property name="hibernate.archive.autodetection" value="class"/> + <property name = "hibernate.archive.autodetection" value="class"/> </properties> </persistence-unit> diff --git a/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/log4j2.xml b/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/log4j2.xml index 256fe35c11bad0ce1485d663e003a47ad3e61455..4683bf39882bd835c5bba31ea5140a43ee577a69 100644 --- a/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/log4j2.xml +++ b/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/log4j2.xml @@ -9,9 +9,8 @@ </Console> </Appenders> <Loggers> - - <!-- You my want to define class or package level per-logger rules --> - <Logger name="de.hdm_stuttgart.mi.sda2.q.App" level="debug"> + <!-- You may want to enable more detailed hibernate logging --> + <Logger name="org.hibernate" level="info"> <AppenderRef ref="A1"/> </Logger> <Root level="info">