Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
A wop bop a lu bop a womp bam boom! Tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic