@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: