[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1196) Allow use of orphanRemoval jpa2 property in collection annotations for cascade
    Thomas Guerin (JIRA) 
    noreply at atlassian.com
       
    Sat Jan 21 09:04:10 EST 2012
    
    
  
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