Browse Source

DeathCertificateCommand Converters

Andrew Grant 4 months ago
parent
commit
3a5da4e9e9

+ 1 - 0
src/main/java/scot/carricksoftware/grants/converters/certificates/deathcertificates/DeathCertificateCommandConverter.java

@@ -14,4 +14,5 @@ public interface DeathCertificateCommandConverter extends Converter<DeathCertifi
     @Override
     DeathCertificate convert(@SuppressWarnings("NullableProblems") DeathCertificateCommand source);
 
+
 }

+ 27 - 0
src/main/java/scot/carricksoftware/grants/converters/certificates/deathcertificates/DeathCertificateCommandConverterImpl.java

@@ -15,10 +15,37 @@ public class DeathCertificateCommandConverterImpl implements DeathCertificateCom
 
     @Override
     public DeathCertificate convert(DeathCertificateCommand source) {
+
         DeathCertificate target = new DeathCertificate();
 
         target.setId(source.getId());
         target.setDeceased(source.getDeceased());
+        target.setFather(source.getFather());
+        target.setInformant(source.getInformant());
+        target.setMother(source.getMother());
+        target.setSpouse(source.getSpouse());
+        target.setUsualResidence(source.getUsualResidence());
+        target.setWhereDied(source.getWhereDied());
+        target.setSex(source.getSex());
+        target.setAge(source.getAge());
+        target.setCauseOfDeath(source.getCauseOfDeath());
+        target.setFatherOccupation(source.getFatherOccupation());
+        target.setInformantAddress(source.getInformantAddress());
+        target.setInformantQualification(source.getInformantQualification());
+        target.setMaritalStatus(source.getMaritalStatus());
+        target.setMotherOccupation(source.getMotherOccupation());
+        target.setOccupation(source.getOccupation());
+        target.setSpouseOccupation(source.getSpouseOccupation());
+        target.setUntrackedFather(source.getUntrackedFather());
+        target.setUntrackedInformant(source.getUntrackedInformant());
+        target.setUntrackedMother(source.getUntrackedMother());
+        target.setUntrackedSpouse(source.getUntrackedSpouse());
+        target.setUntrackedUsualResidence(source.getUntrackedUsualResidence());
+        target.setUntrackedWhereDied(source.getUntrackedWhereDied());
+        target.setWhenBorn(source.getWhenBorn());
+        target.setWhenDied(source.getWhenDied());
+        target.setWhenRegistered(source.getWhenRegistered());
+        target.setWhereRegistered(source.getWhereRegistered());
 
         return target;
     }

+ 26 - 0
src/main/java/scot/carricksoftware/grants/converters/certificates/deathcertificates/DeathCertificateConverterImpl.java

@@ -21,6 +21,32 @@ public class DeathCertificateConverterImpl implements DeathCertificateConverter
 
         target.setId(source.getId());
         target.setDeceased(source.getDeceased());
+        target.setFather(source.getFather());
+        target.setInformant(source.getInformant());
+        target.setMother(source.getMother());
+        target.setSpouse(source.getSpouse());
+        target.setUsualResidence(source.getUsualResidence());
+        target.setWhereDied(source.getWhereDied());
+        target.setSex(source.getSex());
+        target.setAge(source.getAge());
+        target.setCauseOfDeath(source.getCauseOfDeath());
+        target.setFatherOccupation(source.getFatherOccupation());
+        target.setInformantAddress(source.getInformantAddress());
+        target.setInformantQualification(source.getInformantQualification());
+        target.setMaritalStatus(source.getMaritalStatus());
+        target.setMotherOccupation(source.getMotherOccupation());
+        target.setOccupation(source.getOccupation());
+        target.setSpouseOccupation(source.getSpouseOccupation());
+        target.setUntrackedFather(source.getUntrackedFather());
+        target.setUntrackedInformant(source.getUntrackedInformant());
+        target.setUntrackedMother(source.getUntrackedMother());
+        target.setUntrackedSpouse(source.getUntrackedSpouse());
+        target.setUntrackedUsualResidence(source.getUntrackedUsualResidence());
+        target.setUntrackedWhereDied(source.getUntrackedWhereDied());
+        target.setWhenBorn(source.getWhenBorn());
+        target.setWhenDied(source.getWhenDied());
+        target.setWhenRegistered(source.getWhenRegistered());
+        target.setWhereRegistered(source.getWhereRegistered());
 
         return target;
     }