Hibernate version: 3
Hi all
I added $date support to velocity templates of my hibernate tools, by adding the following code on TemplateHelper.java (hibernate-tools jar):
...
import org.apache.velocity.tools.generic.DateTool;
...
...
getContext().put("date", new DateTool());
(at the end of the "init" method)
Then I regenerated the hibernate-tools.jar, and it worked!
Unfortunately i'm not an hibernate developer, but if any developer read this post, i think it's a nice feature to add on the next release.
Regards, Fernando
|