[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6382) Support OnDelete=OnDeleteAction.CASCADE for unidirectional OneToMany ( JPA )
Andre (JIRA)
noreply at atlassian.com
Thu Jun 30 11:29:55 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42740#action_42740 ]
Andre commented on HHH-6382:
----------------------------
related forum thread: https://forum.hibernate.org/viewtopic.php?f=1&t=1011651&p=2446492#p2446492
> 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