This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Object Relational Mapping and the fly likes org.hibernate.MappingException : Unknown Entity? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "org.hibernate.MappingException : Unknown Entity?" Watch "org.hibernate.MappingException : Unknown Entity?" New topic
Author

org.hibernate.MappingException : Unknown Entity?

Muralidharan Raju
Greenhorn

Joined: Feb 24, 2011
Posts: 25

hey folks..

This is weird but, i get this error while trying to insert or access the table through hibernate. Thing is.. i was able to insert properly in the beginning when i developed it. after a while i get this kind of error where i cant insert nor can i access the table rows. I have observed that sometimes it mapps and sometimes it doesnt(random way). Is there some property i need to set? or something like that?

PS: when i clean my project in Myeclipse it works sometimes and sometimes it doesnt. I didnt make any syntactical error .. i was able to run it . i can access at random times.

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Can you post the stack trace?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Muralidharan Raju
Greenhorn

Joined: Feb 24, 2011
Posts: 25


Arun Kumarr
Ranch Hand

Joined: May 16, 2005
Posts: 513

If you're editing the hibernate files, be sure you're editing the actual file and not the file which is in the classes or bin folder.


If you are not laughing at yourself, then you just didn't get the joke.
 
Don't get me started about those stupid light bulbs.
 
subject: org.hibernate.MappingException : Unknown Entity?