Skip to content

Commit

Permalink
added dto to entity and entity to dto conversion of symptoms
Browse files Browse the repository at this point in the history
  • Loading branch information
meajt committed Mar 21, 2023
1 parent 166ae73 commit 3be703f
Showing 1 changed file with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,18 @@ public Symptoms fillOrBuildEntity(SymptomsDto source, Symptoms target, boolean c
target.setDizzinessStandingUp(source.getDizzinessStandingUp());
target.setHighOrLowBloodPressure(source.getHighOrLowBloodPressure());
target.setUrinaryRetention(source.getUrinaryRetention());

target.setBodyAche(source.getBodyAche());
target.setNumbness(source.getNumbness());
target.setMuscleTwitching(source.getMuscleTwitching());
target.setPunctureMarkAtWound(source.getPunctureMarkAtWound());
target.setBleedingAroundBite(source.getBleedingAroundBite());
target.setDisturbedVision(source.getDisturbedVision());
target.setDiscoloredSkin(source.getDiscoloredSkin());
target.setGrowthNodulesOnSkin(source.getGrowthNodulesOnSkin());
target.setPainlessUlcer(source.getPainlessUlcer());
target.setEyelashes(source.getEyelashes());
target.setEnlargesNerves(source.getEnlargesNerves());
target.setMuscleWeakness(source.getMuscleWeakness());
return target;
}

Expand Down Expand Up @@ -407,7 +418,18 @@ public static SymptomsDto toSymptomsDto(Symptoms symptoms) {
target.setDizzinessStandingUp(source.getDizzinessStandingUp());
target.setHighOrLowBloodPressure(source.getHighOrLowBloodPressure());
target.setUrinaryRetention(source.getUrinaryRetention());

target.setBodyAche(source.getBodyAche());
target.setNumbness(source.getNumbness());
target.setMuscleTwitching(source.getMuscleTwitching());
target.setPunctureMarkAtWound(source.getPunctureMarkAtWound());
target.setBleedingAroundBite(source.getBleedingAroundBite());
target.setDisturbedVision(source.getDisturbedVision());
target.setDiscoloredSkin(source.getDiscoloredSkin());
target.setGrowthNodulesOnSkin(source.getGrowthNodulesOnSkin());
target.setPainlessUlcer(source.getPainlessUlcer());
target.setEyelashes(source.getEyelashes());
target.setEnlargesNerves(source.getEnlargesNerves());
target.setMuscleWeakness(source.getMuscleWeakness());
return target;
}

Expand Down

0 comments on commit 3be703f

Please sign in to comment.