• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Association references unmapped class exception with hibernate

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hii to all

actually i am a new to hybernate and during make projects i get this exception and after spending 2 more days i am not able to find why this exception is comes please suggest me .
because i knew this error is coming during the getseeion to the database to load the mapping file .

please check where is my mapping is wrong ?

exception is
org.hibernate.MappingException: Association references unmapped class: com.tra.Generate.TraCurrentUsers
at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2380)
at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2662)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1130)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1286)
at com.tra.manager.transaction.TransactionMngr.getSession(TransactionMngr.java:627)
at com.tra.manager.transaction.TransactionMngr.retrieveData(TransactionMngr.java:246)

i make my .hbm.xml and pojo by reverse enginnering i want to map usermaintenance table to the tracurrentusers and traroles

first .hbm file is

second one is

last third one is
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic