All I want When ever a record is entered in Employee_Address, That record must have a mapping in Employee(Employee_Id) table.
I went through many articles on this.. many of them suggested that... in Employee .java should contain an object and setters/getters for Employee_Address. I dint understand this. Because if I do like this...I need to fill Employee_Address object to enter any record in Employee table.
I want Employee record to be entered with out any Employee_Address details. But to enter a record into Employee_Address must have a record in Employee.