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