-->
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.  [ 5 posts ] 
Author Message
 Post subject: hibernate without ant
PostPosted: Fri Jul 15, 2005 1:25 am 
Newbie

Joined: Thu Jul 14, 2005 7:50 am
Posts: 8
hi everyone,

I am new to hibernate. But whichever application I see, it includes usage of ant in it.

How should i configure my application if i want it without usage of ant?

Please guide me.
Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 1:58 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Ant is a build tool. Hibernate doesn't require ant.

HTH
Ernst


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 2:16 am 
Newbie

Joined: Thu Jul 14, 2005 7:50 am
Posts: 8
well thanx a lot . well atleast i knew that much. But what the problem is , if i run my application through ant, it works fine but if i run it through my IDE it gives error.

And the error is, it cant find hbm.xml files.

So m i missing any link? or some setting??

I hope u get my problem now.

Thanx in advance


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 2:22 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
There are many different ways to make hibernate find your hbm.xml files. See the different addXyz methods off the Configuration class.

Often the hbm.xml files are put into the classpath. Maybe this isn't the case in your IDE set up.
With eclipse you can add the directory with the hbm.xml files as a source directory, I don't know for other IDEs.

HTH
Ernst


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 6:01 am 
Newbie

Joined: Thu Jul 14, 2005 7:50 am
Posts: 8
hey actually there was problem with my IDE. It doesnt do anything abt xml files at build time. So my problem is solved.

Thanx anyways.

Priti


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