Как сделать hbm2ddl schemaExport для записи схемы в стандартный вывод?

Цитата из persistence.xml :

<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>

Вот что я вижу в выводе журнала:

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

Но я не вижу, чтобы схема (SQL) экспортировалась сама. Как получить эту информацию из Hibernate (3.5.6-Final)?

15
задан Pascal Thivent 2 October 2010 в 16:29
поделиться