Consider the following relationship between Customer and Address entities.
Customer 0..1 ----------- 0..* Address
What will be the result of the follow method call made by a client?
somecustomer.setAddresses(null);
Select 1 correct option.
1 In the Customer bean, the reference variable pointing to a Collection object for addresses will be set to null.
2 In the Customer bean, the Collection object referenced by variable for addresses will be emptied.
3 This call is illegal. It should pass an empty Collection object if it wants to remove all the addresses for a customer.
4 In the Customer bean, the Collection object referenced by variable for orders will be emptied and all the addresses entities will be deleted from the database.