posted 9 years ago
Hi Guys,
I have 2 tables as follows.
Employee
-----
id (pk)
name
Address
-----
emp_id (fk to employee)
street
Note that
Employee can have multiple addresses.
address does not have id (pk) field so as per my understanding address can not be marked as entity.
Questions
What is the right annotation for Address,
What is the right annotation for Set<Address> addresses field in Employee classes.
Thanks in advanced.
Chaminda