This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate Error with folders Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Error with folders" Watch "Hibernate Error with folders" New topic
Author

Hibernate Error with folders

Georgios Chatziefstratiou
Ranch Hand

Joined: May 26, 2012
Posts: 83
Hello there.

I have the following problem.
I have create a small project with Netbeans and i am using Hibernate for a simple CRUD with Derby DB .
Everything works fine when my classes are in the default folder BUT when i create separate folders for classes and not using the default folder nothing works and get the message that hibernate cannot find the classes.
What can i do to solve that .My imports are ok but nothing seems to work no compile errors.

Thanks nice to meet you.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3833

Horche Gratsias wrote:...Everything works fine when my classes are in the default folder BUT when i create separate folders for classes and not using the default folder nothing works and get the message that hibernate cannot find the classes.
...

You should point the Java to find the classes it needs (i.e.: add the location of the classes to the classpath). How you run it BTW?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Georgios Chatziefstratiou
Ranch Hand

Joined: May 26, 2012
Posts: 83
Vijitha Kumara wrote:
Horche Gratsias wrote:...Everything works fine when my classes are in the default folder BUT when i create separate folders for classes and not using the default folder nothing works and get the message that hibernate cannot find the classes.
...

You should point the Java to find the classes it needs (i.e.: add the location of the classes to the classpath). How you run it BTW?


if i point Java to find the classes it needs i also get errors.What do you mean with add the location of the classes to the classpath ?What do you mean how do i run it BTW?
hemantha kumar k
Greenhorn

Joined: Apr 20, 2010
Posts: 27

paste your directory structure and hibernate configuration file..
 
GeeCON Prague 2014
 
subject: Hibernate Error with folders