-->
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.  [ 6 posts ] 
Author Message
 Post subject: Override/remove hibernate tools generated comments
PostPosted: Wed Jul 11, 2007 3:02 pm 
Beginner
Beginner

Joined: Mon Jul 09, 2007 2:21 pm
Posts: 24
How can i Override/remove hibernate tools generated comments?

For example, i want to remove the comment in the generated pojo.

// Generated Jul 11, 2007 11:42:13 AM by Hibernate Tools 3.2.0.b9


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 6:59 pm 
Beginner
Beginner

Joined: Mon Jul 09, 2007 2:21 pm
Posts: 24
Can anybody please help me with this


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 16, 2007 4:36 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
go into the pojo/*.ftl templates, take a copy, do the changes you want and use templatepath to specify your custom changes.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 16, 2007 2:20 pm 
Beginner
Beginner

Joined: Mon Jul 09, 2007 2:21 pm
Posts: 24
Can u just show me an example of how i can do this particularly?
i am not getting a clue as to how to change the ftl file (and which ftl file to modify)

if u can show me one example it will be great!!!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 16, 2007 2:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
there are examples in the docs on how to do this as far as i remember.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 27, 2008 4:15 am 
Newbie

Joined: Wed Aug 27, 2008 4:05 am
Posts: 1
max wrote:
there are examples in the docs on how to do this as far as i remember.


for example.

#go to

C:\eclipse\plugins\org.hibernate.eclipse_3.2.3.GA\lib\tools

#open

hibernate-tools.jar

#find and edit

/pojo/Pojo.ftl

#remove

// Generated ${date} by Hibernate Tools ${version}


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.