[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6382) Support OnDelete=OnDeleteAction.CASCADE for unidirectional OneToMany ( JPA )
Andre (JIRA)
noreply at atlassian.com
Thu Jun 30 06:48:53 EDT 2011
Support OnDelete=OnDeleteAction.CASCADE for unidirectional OneToMany ( JPA )
----------------------------------------------------------------------------
Key: HHH-6382
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6382
Project: Hibernate Core
Issue Type: New Feature
Components: metamodel
Affects Versions: 4.0.0.Beta2
Environment: ALL
Reporter: Andre
OnDelete=OnDeleteAction.CASCADE on unidirectional OneToMany results in :
"only inverse one-to-many associations may use on-delete="cascade"
But in JPA we do not have bidirectional mapping.
My code is generated with hyperjaxB, so I have no possibility to make the relation bidirectional.
I think OnDelete=OnDeleteAction.CASCADE must be possible together with orphanRemoval=true.
(orphanRemoval=true for updates, and OnDelete=OnDeleteAction.CASCADE for deletes)
--
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