You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by "Thomas Dudziak (JIRA)" <ji...@apache.org> on 2006/03/05 18:33:40 UTC

[jira] Resolved: (OJB-73) generate onDelete="cascade" for foreign-key element if auto-delete is set to true for collection descriptor

     [ http://issues.apache.org/jira/browse/OJB-73?page=all ]
     
Thomas Dudziak resolved OJB-73:
-------------------------------

    Fix Version: 1.0.5
                 1.1 CVS
     Resolution: Fixed
      Assign To: Thomas Dudziak

Fixed in the 1.0.x branch and in HEAD, though with separate attributes foreignkey-on-delete/foreignkey-on-update.

> generate onDelete="cascade" for foreign-key element if auto-delete is set to true for collection descriptor
> -----------------------------------------------------------------------------------------------------------
>
>          Key: OJB-73
>          URL: http://issues.apache.org/jira/browse/OJB-73
>      Project: OJB
>         Type: New Feature
>   Components: XDoclet module
>     Versions: 1.0.3
>     Reporter: Maksimenko Alexander
>     Assignee: Thomas Dudziak
>      Fix For: 1.0.5, 1.1 CVS

>
> I specify auto-delete=true in my collection descriptor
>    /**
>     * @ojb.collection element-class-ref="com.esaya.webmail.datamodel.folder.mail.EmailMessage" foreignkey="mailFolderId"
>     * database-foreignkey="false" proxy="true" collection-class="org.apache.ojb.broker.util.collections.ManageableArrayList"
>     * auto-delete="true" auto-update="false" proxy="true"
>     */
>    private List content;
> and generate database schema using Xdoclet
>            <ojbdoclet destdir="${torque.output.dir}" checks="basic">
>                <fileset dir="${outputDatabaseOjbJava}"/>
>                <ojbrepository destinationFile="OJB-repository-types.xml" verbose="true"/>
>                <torqueschema databaseName="${pom.groupId}" destinationFile="${torque.project}-schema.xml"/>
>            </ojbdoclet>
> but got the following
>        <foreign-key foreignTable="FOLDER">
>            <reference local="MAIL_FOLDER_ID" foreign="ID"/>
>        </foreign-key>
> so attribute onDelete="cascade" isn't genereted

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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