| Joined: Tue Jan 05, 2010 2:33 pm
 Posts: 15
 | 
				
					| I have an object Employee which has a many-to-one mapping EmployeeType:
 class Employee{
 EmployeeType type;
 ..
 ..
 }
 
 If I delete an EmployeeType object from the databse and there are Employees which have this type they will all through critical errors every time I try to load an Employee Object that is that type.
 
 So My question is if I have a bunch of employees of a certain type and someone deletes that type, How can I get all the EMployee objects to revert to a default type ???
 
 
 |  |