[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-1196) Allow use of orphanRemoval jpa2 property in collection annotations for cascade
Thomas Guerin (JIRA)
noreply at atlassian.com
Sat Jan 21 09:06:09 EST 2012
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45209#comment-45209 ]
Thomas Guerin commented on HBX-1196:
------------------------------------
There is a mistake in the attach file for the getOrphanRemoval method, the return type is String not Object
> Allow use of orphanRemoval jpa2 property in collection annotations for cascade
> ------------------------------------------------------------------------------
>
> Key: HBX-1196
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1196
> Project: Hibernate Tools
> Issue Type: Improvement
> Components: reverse-engineer
> Affects Versions: 3.2.4.GA
> Environment: Hibernate 3.6.8.Final, Hsqldb
> Reporter: Thomas Guerin
> Priority: Minor
> Attachments: orphanRemoval.java
>
>
> With jpa2 it would be better to use orphanRemoval property instead of hibernate specific annotation. An easy way to fix it is to allow DELETE or ORPHAN_REMOVAL value in cascade values and then append orphanRemoval=true in the generated annotation right after the cascadeType property in org.hibernate.tool.hbm2x.pojo.EntityPOJOClass.generateCollectionAnnotation.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list