[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-250) @OnDelete -> action = OnDeleteAction.SET_NULL (like in MySql 5)

Arik Kfir (JIRA) noreply at atlassian.com
Sat Aug 4 17:49:11 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27739 ] 

Arik Kfir commented on ANN-250:
-------------------------------

+1

(See http://opensource.atlassian.com/projects/hibernate/browse/ANN-598#action_27738)

> @OnDelete -> action = OnDeleteAction.SET_NULL (like in MySql 5)
> ---------------------------------------------------------------
>
>                 Key: ANN-250
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-250
>             Project: Hibernate Annotations
>          Issue Type: Improvement
>          Components: binder
>         Environment: MySQL 5
>            Reporter: Andreas Berger
>
> Is it possible to add a "SET NULL" action for the @OnDelete - Annotation? This should result in the following SQL query:
> ALTER TABLE `foo`  ADD CONSTRAINT "bar" FOREIGN KEY ("fk_id") REFERENCES "foo2" ("id") ON DELETE SET NULL;

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

        



More information about the hibernate-issues mailing list