"Steve Grant" <[EMAIL PROTECTED]> writes:
> Whats wrong with this XML? When set the Object model to complex I get no
> methods in either the item or category peer classes that refer to the
> other - like a getItemsJoinXxx(Criteria).
>
> <database>
> <table name="ITEM">
> <column name="ITEM_ID" required="true" autoIncrement="true"
> primaryKey="true" type="INTEGER"/>
> <column name="TITLE" size="255" type="VARCHAR"/>
> <column name="TEXT" size="255" type="VARCHAR"/>
> <column name="AUTHOR" size="255" type="VARCHAR"/>
> <column name="DEPT" size="255" type="VARCHAR"/>
> <column name="URL" size="255" type="VARCHAR"/>
> <column name="CATEGORY_ID" required="true" type="INTEGER"/>
>
> <foreign-key foreignTable="CATEGORY">
> <reference local="CATEGORY_ID" foreign="CATEGORY_ID"/>
> </foreign-key>
>
>
> </table>
>
>
> <table name="CATEGORY">
> <column name="CATEGORY_ID" required="true" autoIncrement="true"
> primaryKey="true" type="INTEGER"/>
> <column name="BODY" size="255" type="VARCHAR"/>
>
> <foreign-key foreignTable="ITEM">
> <reference local="CATEGORY_ID" foreign="CATEGORY_ID"/>
> </foreign-key>
>
> </table>
> </database>
You may need <app-data>...</app-data> tags around your database. And
the methods are generated on the Base[Type][Peer] class in the [your
package].base package. The other stubs extend these.
Daniel
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]