I am new to hibernate. Please help me.
I have 2 tables named Employee and Country.I need to save the Employee with selected country.In my case , I will nowhere get employee details back and show it on UI. Do i need to maintain mapping(onetoone mapping) between Employee and Country objects? Can't i directly save employee with selected country?
can i do as below in my Employee domain object?If not, please tell me potential problems with this?
@column(name="countryId")
private int countryId;