-->
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: Modifying Velocity Templates
PostPosted: Fri Feb 25, 2005 9:05 am 
Beginner
Beginner

Joined: Fri Mar 05, 2004 1:48 pm
Posts: 28
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: Hibernate 3 Beta 4, Hibernate tools 3

I know I can modify the velocity templates in the tools jar to produce whatever I want. I basically want to generate the POJOs in a different language. Do I need to modify more than just the POJO.vm template? For instance, with a table which has a composite primary key and a seperate POJO for that key, does this file handle all of those situations or are there other supporting templates I need to modify as well. Sorry, I'm new to Velocity.

Thanks.
Troy


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 10:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The POJO generation has the majority of the definitions in the POJO.vm template. This is not the case for HBMs and the POJO script is likely to be changed to be similar in the future.
In anycase, it should be easy enough to look at the scripts and follow whats going on. Just go step by step and you will be fine.


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.