-->
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: Mapping file generation using hbm2hbmxml tool
PostPosted: Mon Feb 25, 2008 2:13 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
I am trying to generate mapping file using the hbm2hbmxml tool. My understanding is that the tool generates .hbm.xml files given a property file containing the schema and dialect details. I have written an ant task to invoke the tool. The task executes without any error. However, no hibernate mapping files are generated. What am I missing. Since there are no errors, I am unable to find out where I am wrong.

Here is the ant task :

Code:
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="toolslib" />
   <hibernatetool destdir="generated">
      <configuration propertyfile="hibernate.properties"/>
      <hbm2hbmxml/>
   </hibernatetool>


The hiberate.properties file holds the schema, driver class, user name, password and the dialect.

Where am I wrong. Please help!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 25, 2008 11:33 am 
Senior
Senior

Joined: Fri Jun 01, 2007 12:41 pm
Posts: 121
move this question to hibernate tools forum.


Top
 Profile  
 
 Post subject: Re: Mapping file generation using hbm2hbmxml tool
PostPosted: Fri Jan 15, 2010 7:51 am 
Newbie

Joined: Fri Jan 15, 2010 7:43 am
Posts: 2
I'm new but I write the hibernate.properties into the jdbcconfiguration tag and not the configuration tag ...

<hibernatetool destdir="${src.java.dir}">
<jdbcconfiguration
propertyfile="${basedir}/build/helloworld.db.properties"
revengfile="${basedir}/build/helloworld.reveng.xml"/>


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.