Hi,

is there a possibility to let OpenJPA create a SQL DDL script without
accessing the database? I would like to apply this script later on to an
empty database.

I was in part successful with the mapping tool, alas it still tries to open
a connection

<openjpa:mappingtool action="buildSchema" schemaaction="createDB"
sqlfile="${basedir}/build/sql/create.sql">
        <config
propertiesFile="${basedir}/build/conf/META-INF/persistence.xml" />
        <classpath>
                <pathelement location="${basedir}/build/model" />
        </classpath>
</openjpa:mappingtool>

Regards,
Frank

Reply via email to