-->
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.  [ 3 posts ] 
Author Message
 Post subject: Question w/ MiddleGen & Velocity code in hibernate-dao.v
PostPosted: Fri Aug 12, 2005 11:11 am 
Newbie

Joined: Fri Aug 12, 2005 11:01 am
Posts: 5
Hello, I have what I hope is a simple question.
I'm just getting into Hibernate & Spring. I created a few little simple applications to get aquainted with the technologies.

Now, going on to a much larger project, I decided to investigate MiddleGen to create some of the files for me. I've got it creating the .hbm.xml files without too many problems, and I've got it creating the Business Objects and DAO classes with a few problems.

I was going to modify the .vm template file for the dao and bo objects, and in the .vm file there is a lot of Velocity code. Now, here's my question:

The first line says:
package ${table.package};

Where exactly is the variable table.package defined? There are a number of places where other variables (${plugin.hibernateDAO.exception} for instance) that show up in the generated file as ${plugin.hibernateDAO.exception} not the variable value.

If I knew where those we being created I could investigate and really customize things like I wanted, but being new, I really don't know where that information is coming from.

I really appreciate any help anyone can provide to me. Thanks for helping a new guy and I will promptly answer any questions posted.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 1:09 pm 
Newbie

Joined: Fri Jan 07, 2005 5:46 pm
Posts: 19
The Velocity documentation (http://jakarta.apache.org/velocity/docs/user-guide.html) and the MiddleGen mailing list and archive (http://boss.bekk.no/boss/middlegen/mail-lists.html) is probably a better place to get more information regarding your problem than this forum.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 1:15 pm 
Newbie

Joined: Fri Aug 12, 2005 11:01 am
Posts: 5
Thanks, I was just at a loss, and didn't know where to turn.
I appreciate the links, I will investigate.


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