> Using TDK2.1, MySQL, on W2K
> In my project-schema.xml I have the following table definition...
>
> <table name="MY_TABLE">
> <column name="ID" required="true" autoIncrement="true" primaryKey="true"
> type="INTEGER"/>
> <column name="FK_USER_ID" size="255" type="INTEGER"/>
> <column name="FOO" size="255" type="VARCHAR"/>
>
> <foreign-key foreignTable="TURBINE_USER">
> <reference local="FK_USER_ID" foreign="USER_ID"/>
> </foreign-key>
> </table>
>
> ...when I run "ant init" it fails to build. The compilation error is:
>
> ERROR!! Attempt to set foreign key to nonexistent table, TURBINE_USER!
> java.lang.NullPointerException
> at
> org.apache.turbine.torque.engine.database.transform.XmlToAppData.startElemen
> t(XmlToAppData.java:237)
> at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at
> org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
> or.java:1122)
> at ..... bla bla bla ....
>
> I could be wrong but it seems as though that "ant init" wants to build my
> project schema before building the turbine schema. So what do I do?
This is the exact thing I am doing. I have a working solution whereby
I redefine the TURBINE_USER table in my application schema, but
I did post an as yet unanswered question a couple of days ago querying
the availability of a better way of achieving this. See:
http://www.mail-archive.com/turbine-user%40jakarta.apache.org/msg01759.html
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]