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/msg0381...
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira