-->
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: Sun One: Where do I put my hibernate.properties?
PostPosted: Thu Jan 08, 2004 6:02 pm 
Beginner
Beginner

Joined: Thu Dec 11, 2003 11:59 am
Posts: 24
I'm running Sun One Appserver 8. I have a hibernate.properties that configures the database specifics and I use Configuration.addClass() to specify the classes to be mapped.

I just can't seem to find where to put the hibernate.properties so that it will be found. The reason that I'm not using an XML config is because I am specifying my mapping with addClass(), and the XML parser complains if my hibernate.cfg.xml doesn't have at least one mapping tag.

Can anyone give me a hand?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 08, 2004 8:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You should put it somewhere in the root of the classpath for your application.


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.