Dynamicly Change the package declaration for dao layer
------------------------------------------------------
Key: HBX-703
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-703
Project: Hibernate Tools
Type: Improvement
Components: reverse-engineer
Environment: Windows Xp, Hinernate Tools 3.2 Beta 6, Oracle 10g, Hibernate 3.1
Reporter: Jacob Bergoo
See http://forum.hibernate.org/viewtopic.php?t=961900 #1
>From the normal package declaration in Ant "com.myapp.persistance.dao" I want the Hibernate tools to dynamicly add the pojos class name in lower case to the package declaration and also when the dao file is created it will be placed in the corresponding folder.
Example:
Should be able to change the package declaration in the templates:
Default: ${pojo.getPackageDeclaration()}
To: ${pojo.getPackageDeclaration()}.${declarationName?lower_case}
which generate for example a CustomerDao.java in the file structure com/myapp.persistence/dao/customer/CustomerDao.java
--
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
|