This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

One to Many Mapping : org.hibernate.MappingException: Association references unmapped class

Ranch Hand
Posts: 290
Debian Fedora Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i'm having 2 entity Student and Address trying to do 12M




i'm getting followin problem Log

INFO: Reading mappings from resource : com/hbm/student.hbm.xml
Nov 30, 2011 12:56:11 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.home.student.Student -> STUDENT
Nov 30, 2011 12:56:11 AM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Exception in thread "main" org.hibernate.MappingException: Association references unmapped class: com.home.student.Address
at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(
at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(
at org.hibernate.cfg.Configuration.secondPassCompile(
at org.hibernate.cfg.Configuration.buildSessionFactory(
at com.home.student.Demo.main(
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is your com/hbm/address.hbm.xml in the same location as com/hbm/student.hbm.xml and is it declared in your hibernate,cfg.xml?
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic