[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1140) POJO java code exporter (<hbm2java>) should have a boolean 'overwrite' property

Julien Kronegg (JIRA) noreply at atlassian.com
Tue Sep 1 03:54:16 EDT 2009


 POJO java code exporter (<hbm2java>) should have a boolean 'overwrite' property
--------------------------------------------------------------------------------

                 Key: HBX-1140
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1140
             Project: Hibernate Tools
          Issue Type: New Feature
          Components: hbm2java
    Affects Versions: 3.2.4 Beta1
            Reporter: Julien Kronegg
            Priority: Minor


The hbm2java Ant task is currently overwriting every generated file.
It would be useful to add an 'overwrite' property to the <hbm2java> Ant tag, with the same meaning as in the Ant <copy> tag.
This could be inspired by http://www.mail-archive.com/hibernate-devel@lists.sourceforge.net/msg03818.html

Workaround:
-----------------
1. generate the java entities to a temporary directory: <hbm2java destdir="./temp"/>
2. copy the files from the temp directory to the final directory: <copy overwrite="false" todir="your_dest_dir"><fileset dir="./temp" includes="**"/></copy>
3. delete the temporary directory <delete dir="./temp"/>

-- 
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