-->
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: customize hibernate tools templates
PostPosted: Tue Apr 12, 2011 10:09 am 
Newbie

Joined: Tue Nov 09, 2010 7:31 am
Posts: 4
Hi all,

I'd like to customize my templates in order to generate the annotations over the attributes instead of the getter's, how do I have to do ?

I was looking for some tutorial or something but I couldn't find anyone.

Is this possible ??

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: customize hibernate tools templates
PostPosted: Thu Apr 14, 2011 11:19 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the reference docs have example of how to customize templates: http://docs.jboss.org/tools/3.0.0.CR1/e ... ml#d0e5067

You should just need to copy/move the template logic concerning <#include "GetPropertyAnnotation.ftl"/> from pojo/PojoPropertyAccessors.ftl to pojo/PojoFields.ftl

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