-->
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: Hibernate Mapping file generation using hbm2hbmxml tool
PostPosted: Mon Feb 25, 2008 2:28 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: Tue Mar 04, 2008 11:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Use <jdbcconfiguration> if you want to do reverse engineering.

A <configuration> expects hbm.xml's to have the mappings.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 05, 2008 12:20 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
Thanks! I already solved the issue . :)

_________________
Sukirtha


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.