-->
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: How to customize dao generation using hbmtemplate in Ant?
PostPosted: Fri Jun 02, 2006 11:23 am 
Newbie

Joined: Wed Jun 08, 2005 4:13 pm
Posts: 1
Instead of using hbm2dao im trying to use hbmtemplate to customize the package and file suffix for my dao's. I don't see an easy way of doing this without hardcoding the package name and suffix in my freemarker template. Is there another way of specifying these properties in my Ant build file?

Here's what I have now:

Code:
<hbmtemplate
   templateprefix="dao/"
   template="templates/dao/dao.ftl"
   filepattern="com/foo/crm/dao/{class-name}Dao.java">
      <property key="jdk5" value="true"/>
      <property key="ejb3" value="false"/>
</hbmtemplate>



It seems all reverse engineering tasks are forced to inherit the same packagename defined as part of the jdbcconfiguration element.[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 02, 2006 1:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
well the templates only get the pojo as input; what other package should it relate to ?

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