]
Andre commented on HHH-6382:
----------------------------
related forum thread:
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: