The generated SQL-schema and commands are printed in debug-logs
authorKai Moritz <kai@juplo.de>
Wed, 16 Aug 2017 08:33:58 +0000 (10:33 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 16 Aug 2017 11:36:33 +0000 (13:36 +0200)
src/test/resources/META-INF/persistence.xml

index a02aed6..f6fffeb 100644 (file)
@@ -14,6 +14,7 @@
       <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:"/>
       <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
       <property name="hibernate.hbm2ddl.auto" value="create"/>
+      <property name="hibernate.show_sql" value="true"/>
     </properties>
   </persistence-unit>