-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Adding $date support to velocity templates
PostPosted: Sun Apr 03, 2005 1:29 pm 
Newbie

Joined: Sun Apr 03, 2005 12:56 pm
Posts: 1
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 03, 2005 6:56 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
put it in jira with a patch and i'll consider it

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.