openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <plins...@gmail.com>
Subject Re: generate DDL script without database access
Date Thu, 13 Mar 2008 00:34:01 GMT
Hi,

I believe that if you put enough information into the
openjpa.jdbc.DBDictionary setting, then things should work.

Where are you seeing the connection come from? I.e., what's the
exception stack trace?

-Patrick

On Mon, Mar 10, 2008 at 3:08 AM, Frank Schwarz <frank.schwarz@gmx.de> wrote:
> 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
>
>



-- 
Patrick Linskey
202 669 5907

Mime
View raw message