|
|
|
@ -23,7 +23,9 @@ public class ContactDTO { |
|
|
|
name = contact.getName(); |
|
|
|
address = contact.getAddress(); |
|
|
|
email = contact.getEmail(); |
|
|
|
setPhone(contact.getPhone().stream().map(contactPhone -> new PhoneDTO(contactPhone.getNumber(), contactPhone.getType())).collect(Collectors.toList())); |
|
|
|
setPhone(contact.getPhone().stream(). |
|
|
|
map(contactPhone -> new PhoneDTO(contactPhone.getNumber(), contactPhone.getType())). |
|
|
|
collect(Collectors.toList())); |
|
|
|
} |
|
|
|
|
|
|
|
public void setId(long id) { |
|
|
|
|