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!
|