• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

org.hibernate.MappingException: Unknown entity

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can someone please help with this?I am totally stuck at this issue.
 
reply
    Bookmark Topic Watch Topic
  • New Topic