Class Employee{
//one to one
Department dep;
}
Class Department{
String name
}
My question is how do I handle a scenario where I have to delete a department but not the employee row Do I need to manually delete a reference of a department from an employee and then delete the dep or can I use a cascade feature but in that case do not want to delete the parent.