private void changePropertyDetail(final Property modProperty,final PropertyDetail propDetail,final Integer numOfFloors){
  final PropertyDetail propertyDetail=modProperty.getPropertyDetail();
  propDetail.setSitalArea(propertyDetail.getSitalArea());
  propDetail.setTotalBuiltupArea(propertyDetail.getTotalBuiltupArea());
  propDetail.setCommBuiltUpArea(propertyDetail.getCommBuiltUpArea());
  propDetail.setPlinthArea(propertyDetail.getPlinthArea());
  propDetail.setCommVacantLand(propertyDetail.getCommVacantLand());
  propDetail.setSurveyNumber(propertyDetail.getSurveyNumber());
  propDetail.setFieldVerified(propertyDetail.getFieldVerified());
  propDetail.setFieldVerificationDate(propertyDetail.getFieldVerificationDate());
  propDetail.setFloorDetails(propertyDetail.getFloorDetails());
  propDetail.setPropertyDetailsID(propertyDetail.getPropertyDetailsID());
  propDetail.setWater_Meter_Num(propertyDetail.getWater_Meter_Num());
  propDetail.setElec_Meter_Num(propertyDetail.getElec_Meter_Num());
  propDetail.setNoofFloors(numOfFloors);
  propDetail.setFieldIrregular(propertyDetail.getFieldIrregular());
  propDetail.setDateOfCompletion(propertyDetail.getDateOfCompletion());
  propDetail.setProperty(propertyDetail.getProperty());
  propDetail.setUpdatedTime(propertyDetail.getUpdatedTime());
  propDetail.setPropertyTypeMaster(propertyDetail.getPropertyTypeMaster());
  propDetail.setPropertyType(propertyDetail.getPropertyType());
  propDetail.setInstallment(propertyDetail.getInstallment());
  propDetail.setPropertyOccupation(propertyDetail.getPropertyOccupation());
  propDetail.setPropertyMutationMaster(propertyDetail.getPropertyMutationMaster());
  propDetail.setComZone(propertyDetail.getComZone());
  propDetail.setCornerPlot(propertyDetail.getCornerPlot());
  propDetail.setCable(propertyDetail.isCable());
  propDetail.setAttachedBathRoom(propertyDetail.isAttachedBathRoom());
  propDetail.setElectricity(propertyDetail.isElectricity());
  propDetail.setWaterTap(propertyDetail.isWaterTap());
  propDetail.setWaterHarvesting(propertyDetail.isWaterHarvesting());
  propDetail.setLift(propertyDetail.isLift());
  propDetail.setToilets(propertyDetail.isToilets());
  propDetail.setFloorType(propertyDetail.getFloorType());
  propDetail.setRoofType(propertyDetail.getRoofType());
  propDetail.setWallType(propertyDetail.getWallType());
  propDetail.setWoodType(propertyDetail.getWoodType());
  propDetail.setExtentSite(propertyDetail.getExtentSite());
  propDetail.setExtentAppartenauntLand(propertyDetail.getExtentAppartenauntLand());
  if (numOfFloors == 0)   propDetail.setPropertyUsage(propertyDetail.getPropertyUsage());
 else   propDetail.setPropertyUsage(null);
  propDetail.setManualAlv(propertyDetail.getManualAlv());
  propDetail.setOccupierName(propertyDetail.getOccupierName());
  modProperty.setPropertyDetail(propDetail);
}

private void changePropertyDetail ( final Property modProperty , final PropertyDetail propDetail , final Integer numOfFloors ) { final PropertyDetail propertyDetail = modProperty . getPropertyDetail ( ) ; propDetail . setSitalArea ( propertyDetail . getSitalArea ( ) ) ; propDetail . setTotalBuiltupArea ( propertyDetail . getTotalBuiltupArea ( ) ) ; propDetail . setCommBuiltUpArea ( propertyDetail . getCommBuiltUpArea ( ) ) ; propDetail . setPlinthArea ( propertyDetail . getPlinthArea ( ) ) ; propDetail . setCommVacantLand ( propertyDetail . getCommVacantLand ( ) ) ; propDetail . setSurveyNumber ( propertyDetail . getSurveyNumber ( ) ) ; propDetail . setFieldVerified ( propertyDetail . getFieldVerified ( ) ) ; propDetail . setFieldVerificationDate ( propertyDetail . getFieldVerificationDate ( ) ) ; propDetail . setFloorDetails ( propertyDetail . getFloorDetails ( ) ) ; propDetail . setPropertyDetailsID ( propertyDetail . getPropertyDetailsID ( ) ) ; propDetail . setWater_Meter_Num ( propertyDetail . getWater_Meter_Num ( ) ) ; propDetail . setElec_Meter_Num ( propertyDetail . getElec_Meter_Num ( ) ) ; propDetail . setNoofFloors ( numOfFloors ) ; propDetail . setFieldIrregular ( propertyDetail . getFieldIrregular ( ) ) ; propDetail . setDateOfCompletion ( propertyDetail . getDateOfCompletion ( ) ) ; propDetail . setProperty ( propertyDetail . getProperty ( ) ) ; propDetail . setUpdatedTime ( propertyDetail . getUpdatedTime ( ) ) ; propDetail . setPropertyTypeMaster ( propertyDetail . getPropertyTypeMaster ( ) ) ; propDetail . setPropertyType ( propertyDetail . getPropertyType ( ) ) ; propDetail . setInstallment ( propertyDetail . getInstallment ( ) ) ; propDetail . setPropertyOccupation ( propertyDetail . getPropertyOccupation ( ) ) ; propDetail . setPropertyMutationMaster ( propertyDetail . getPropertyMutationMaster ( ) ) ; propDetail . setComZone ( propertyDetail . getComZone ( ) ) ; propDetail . setCornerPlot ( propertyDetail . getCornerPlot ( ) ) ; propDetail . setCable ( propertyDetail . isCable ( ) ) ; propDetail . setAttachedBathRoom ( propertyDetail . isAttachedBathRoom ( ) ) ; propDetail . setElectricity ( propertyDetail . isElectricity ( ) ) ; propDetail . setWaterTap ( propertyDetail . isWaterTap ( ) ) ; propDetail . setWaterHarvesting ( propertyDetail . isWaterHarvesting ( ) ) ; propDetail . setLift ( propertyDetail . isLift ( ) ) ; propDetail . setToilets ( propertyDetail . isToilets ( ) ) ; propDetail . setFloorType ( propertyDetail . getFloorType ( ) ) ; propDetail . setRoofType ( propertyDetail . getRoofType ( ) ) ; propDetail . setWallType ( propertyDetail . getWallType ( ) ) ; propDetail . setWoodType ( propertyDetail . getWoodType ( ) ) ; propDetail . setExtentSite ( propertyDetail . getExtentSite ( ) ) ; propDetail . setExtentAppartenauntLand ( propertyDetail . getExtentAppartenauntLand ( ) ) ; if ( numOfFloors == 0 ) propDetail . setPropertyUsage ( propertyDetail . getPropertyUsage ( ) ) ; else propDetail . setPropertyUsage ( null ) ; propDetail . setManualAlv ( propertyDetail . getManualAlv ( ) ) ; propDetail . setOccupierName ( propertyDetail . getOccupierName ( ) ) ; modProperty . setPropertyDetail ( propDetail ) ; }
changes the property details to builtupproperty or vacantproperty
