• Post Reply Bookmark Topic Watch Topic
  • New Topic

Association references unmapped class exception with hibernate  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!