openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Schwarz" <frank.schw...@gmx.de>
Subject generate DDL script without database access
Date Mon, 10 Mar 2008 10:08:57 GMT
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


Mime
View raw message