tion:,Association,references,unmapped,class" /> Exception in thread "main" org.hibernate.MappingException: Association references unmapped class - Problems and solutions to issues related to Software : Business, Database, Firewalls, Office, Graphics, Security, System, Server.

Question : Exception in thread "main" org.hibernate.MappingException: Association references unmapped class

Hi all,

when i run this using DCRTest.java file i am getting the follwoing ...

and related files are attached for reference...


Exception in thread "main" org.hibernate.MappingException: Association references unmapped class: DCRIncidentId
      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.web.dao.MYBaseDAO.getSession(MYBaseDAO.java:13)
      at com.web.dao.DCRDetailsDAO.findById(DCRDetailsDAO.java:56)
      at com.web.test.DCRTest.main(DCRTest.java:26)


1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
/**
 * 
 */
package com.web.test;

import com.web.dao.DCRDetailsDAO;
import com.web.dcr.DCRDetailsId;




/**
 * @author kishorekumarn
 *
 */
public class DCRTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		DCRDetailsDAO dd = new DCRDetailsDAO();
		DCRDetailsId id = new DCRDetailsId();
		id.setDcrRef("4901");
		DCRDetailsId dr = dd.findById(id);
		System.out.println("----------> "+dr.getDcrRemarks());
		
	}
}
Attachments:
 
 
 
 
 
 

Answer : Exception in thread "main" org.hibernate.MappingException: Association references unmapped class

Ben - in this scenario using CSVDE would be a good approach. since AD & DNS are in an error state you will have to fix them if you plan to use either ADMT as well as SBS migration with an answer file.
also it could save a lot of time depending upon how badly the AD is in.

you might also want to use robocopy for copying the users directories from the server, as well as USMT for profiles depending upon the w/s
Random Solutions  
 
programming4us programming4us