Cytat z persistence.xml
:Jak zrobić schemat hhm2ddl schemaExport do logowania na standardowe wyjście?
<persistence-unit name="test" transaction-type="RESOURCE_LOCAL">
<properties>
<property name="hibernate.archive.autodetection" value="class" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
<property name="hibernate.hbm2ddl.auto" value="create" />
...
</properties>
</persistence-unit>
To co widzę w wyjściowych dziennika:
Sep 30, 2010 12:03:43 PM org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: Running hbm2ddl schema export
Sep 30, 2010 12:03:43 PM org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: exporting generated schema to database
Sep 30, 2010 12:03:43 PM org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: schema export complete
Ale nie widzę schematu (SQL) wywożone się. Jak uzyskać te informacje z Hibernate (3.5.6-Final)?
mógłbyś schować mnie jak dokładnie mogę to zrobić, jeśli używam slf4j i nie mają żadnych plików konfiguracyjnych rejestrowanie jeszcze .. – yegor256