File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "org.hibernate.MappingException : Unknown Entity?" Watch "org.hibernate.MappingException : Unknown Entity?" New topic

org.hibernate.MappingException : Unknown Entity?

Muralidharan Raju

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

Joined: Apr 14, 2004
Posts: 10336

Can you post the stack trace?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Muralidharan Raju

Joined: Feb 24, 2011
Posts: 25

Arun Kumarr
Ranch Hand

Joined: May 16, 2005
Posts: 661

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.
I agree. Here's the link:
subject: org.hibernate.MappingException : Unknown Entity?
jQuery in Action, 3rd edition