I'm just doing a mock
test:
There is a question:
say, there is a one to many relationship, saleman --> customer
saleman1--> collectionCustomers1
saleman2--> collectionCustomers2
if I call saleman1.setCustomers(saleman2.getCustomers())
What will happened?
In the mock test, it says: saleman1 will get all customers have two collections (collectionCustomers1 and collectionCustomers2). saleMan2 will have no customers.
But in another book,
It says for above situation, saleman1 only got collection of collectionCustomers2 and will lost collectionCustomers1.
Can you tell me which one is right answer! thank you.