-->
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: hbm2java task in Hibernate Tools 3.1 beta 4
PostPosted: Tue Feb 21, 2006 12:16 pm 
Regular
Regular

Joined: Fri Mar 04, 2005 1:33 pm
Posts: 65
Location: U.K.
Hi

I am migrating to Hibernate 3 using Hibernate Tools 3.1 beta 4. I create hbm.xml files using Hibernate Tools.

In Hibernate2 and Middlegen I could specify config file where I used to overwrite VelocityRenderer inside <codegen> tag:

<hbm2java
output="${gen.active.src.dir}"
config="${hibernate.cfg.dir}/hbm2java.cfg.xml">
<fileset dir="${gen.active.hibernate.mapping.dir}" >
<include name="**/*.hbm.xml" />
</fileset>
</hbm2java>

<codegen>
<generate renderer="com.psc.base.util.CustomCodeVelocityRenderer">
<param name="template">pojo.vm</param>
</generate>
</codegen>

I was wondering if I can overwrite Velocity Renderer in Hibernate Tools also ? Also documentation states following parameters in hbm2java tag:
jdk5 and ejb3, I was wondering if there are any other parameters I can configure and where can I find that documentation ?

Thanks a lot
Ron


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 21, 2006 1:33 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
tools.hibernate.org got docs.

btw. please note that in the next version freemarker is going to be used for the templates.....see http://blog.hibernate.org/cgi-bin/blosx ... d_velocity for why.

there is an automatic converter available at freemarker.org that handles this pretty well, but just a warning ;)

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