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