Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.hibernate.MappingException: Unknown entity

 
Jitesh Sinha
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am struggling wit this error for hours now.I know it is a simple configuration but somehow it does not work for me.

Here is relevant portion of my applicationcontext.xml :-



I have used both "annotatedClasses" and "packagesToScan" but to no avail.Here is my entity class.





problem appears when I try to save anything in that entity.here is Exception stack trace :-




Please help.
 
Jitesh Sinha
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After I turn on INFO for org.hibernate packages ,I see that binding is happening fine.

2013-04-04 20:55:19,741 INFO [(hibernate.cfg.AnnotationBinder)] Binding entity from annotated class: com.xxx.pkit.entities.DocumentDetails
2013-04-04 20:55:19,795 INFO [(cfg.annotations.EntityBinder)] Bind entity com.xxx.pkit.entities.DocumentDetails on table DOCUMENT_DETAILS

What can be the issue?
 
Jitesh Sinha
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can someone please help with this?I am totally stuck at this issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic