warn users if using default templates, rather than templates (not) found in templatepath
Description
Environment
hibernate tools 3.2 beta 9, ant, freemarker templates
Activity
Show:

Koen Aers December 6, 2024 at 2:18 PM
I am closing this issue as it did not have any updates since 2007. Please feel free to reopen it if you think it is still relevant.

Max Rydahl Andersen May 2, 2007 at 5:55 PM
for now enabling freemarker logging will you tell where templates are being picked up from.
Won't Fix
Details
Details
Assignee

Reporter

Participants



Components
Fix versions
Affects versions
Priority
Created May 2, 2007 at 4:57 PM
Updated December 6, 2024 at 2:18 PM
Resolved December 6, 2024 at 2:18 PM
Further to JIRA issues 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.