Fixed a typo
parent
8f77d0726e
commit
77272549a0
|
|
@ -29,6 +29,9 @@ import javax.inject.Inject;
|
|||
public class PersonImExporter
|
||||
extends AbstractContactableEntityImExporter<Person> {
|
||||
|
||||
@Inject
|
||||
private PersonRepository personRepo;
|
||||
|
||||
@Inject
|
||||
private PersonNameRepository personNameRepo;
|
||||
|
||||
|
|
@ -89,7 +92,7 @@ public class PersonImExporter
|
|||
newPersonName.setSurname(imported.getSurname());
|
||||
|
||||
existingContactable.addPersonName(newPersonName);
|
||||
personNameRepo.save(imported);
|
||||
personNameRepo.save(newPersonName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue