[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-937) warn users if using default templates, rather than templates (not) found in templatepath

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Wed May 2 11:56:04 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_26833 ] 

Max Rydahl Andersen commented on HBX-937:
-----------------------------------------

for now enabling freemarker logging will you tell where templates are being picked up from.

> warn users if using default templates, rather than templates (not) found in templatepath
> ----------------------------------------------------------------------------------------
>
>                 Key: HBX-937
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-937
>             Project: Hibernate Tools
>          Issue Type: Improvement
>          Components: ant, hbm2java
>    Affects Versions: 3.2beta9
>         Environment: hibernate tools 3.2 beta 9, ant, freemarker templates
>            Reporter: Donall Osuilleabhain
>            Priority: Minor
>
> Further to JIRA issues HBX-382 and HBX-383, may i suggest that when the hbm2java exporter does not find templates in the directory specified in attribute "templatepath", a warning is outputted to the user to the effect that "No templates were found in the specified tempaltepath: <templatepath-value>, using default templates.", before the exporter proceeds to use the default templates it finds somewhere else.
> Not for nothing, the warning could also say that the exporter expects to find the template within a sub-directory called "pojo", and to be called Pojo.ftl, because IMHO this is not evident from the documentation available.

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