[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ojb-user
Subject:    Re: Foreign keys & inability to control CREATE TABLE order cause errors MySQL
From:       Alex Epshteyn <alexander.epshteyn () gmail ! com>
Date:       2005-09-25 4:24:25
Message-ID: 9221457f050924212489abe33 () mail ! gmail ! com
[Download RAW message or body]

Thanks, Thomas.  I'll give DdlUtils a try sometime.

- Alex

On 9/21/05, Thomas Dudziak <tomdzk@gmail.com> wrote:
> The DdlUtils website is slightly out of date (should be fixed this
> week), here's how you'd use it in your Ant build file (with PostgreSQL
> in this example, but it is similar with MySQL):
>
>     <taskdef name="ddlToDatabase"
>             classname="org.apache.ddlutils.task.DdlToDatabaseTask">
>      <classpath refid="runtime-classpath"/>
>    </taskdef>
>
>    <ddlToDatabase>
>      <database url="jdbc:postgresql://localhost/test"
>                driverClassName="org.postgresql.Driver"
>                username="admin"
>                password="superDuperPassword"/>
>      <fileset dir="${build.database.dir}" includes="*-schema.xml"/>
>
>      <createdatabase failonerror="false"/>
>      <writeschematodatabase alterdatabase="false"/>
>    </ddlToDatabase>
>
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic