-->
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.  [ 1 post ] 
Author Message
 Post subject: using hibernate with packages
PostPosted: Sat May 14, 2005 6:36 pm 
Newbie

Joined: Sat Apr 23, 2005 10:50 pm
Posts: 17
I have an application with the following packages:

examples.model
examples.database

the root folder is called version and it is set to the classpath as
classpath = C:\version

basically the folders look like this:

C:\version\examples\model
C:\version\examples\database

As far as the packaging and classpath settings are concerned everything
is fine.

In the model folder (or package, C:\version\examples\model)
all the objects to be persisted are there.

In the database folder (C:\version\examples\database) the peristence
class, the class that saves, updates, deletes.. objects reside there.
Also all the hibernate properties and xml files reside there.
But when I run a class from this database folder it does not work!

I get the following output:
WARNING: /hibernate.cfg.xml not found

Please let me know what the problem is, I though that you have to
place all the hibernate files in the same folder where the class that
persist objects reside (including hibernate.cfg.xml which I have done).

Thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.