final RoomFactoryEditor roomFactoryEditor = new RoomFactoryEditor(); roomFactoryEditor.setSpace((Room) getSpace()); roomFactoryEditor.setBlueprintNumber(getBlueprintNumber()); roomFactoryEditor.setIdentification(getIdentification()); roomFactoryEditor.setDescription(getDescription()); roomFactoryEditor.setClassification(getRoomClassification().getPresentationCode()); roomFactoryEditor.setArea(getArea()); roomFactoryEditor.setHeightQuality(getHeightQuality()); roomFactoryEditor.setIlluminationQuality(getIlluminationQuality()); roomFactoryEditor.setDistanceFromSanitaryInstalationsQuality(getDistanceFromSanitaryInstalationsQuality()); roomFactoryEditor.setSecurityQuality(getSecurityQuality()); roomFactoryEditor.setAgeQuality(getAgeQuality()); roomFactoryEditor.setObservations(getObservations()); return roomFactoryEditor;
final RoomFactoryEditor roomFactoryEditor = new RoomFactoryEditor(); roomFactoryEditor.setSpace((Room) getSpace()); roomFactoryEditor.setBlueprintNumber(getBlueprintNumber()); roomFactoryEditor.setIdentification(getIdentification()); roomFactoryEditor.setDescription(getDescription()); roomFactoryEditor.setClassification(getRoomClassification() != null ? getRoomClassification() .getPresentationCode() : null); roomFactoryEditor.setArea(getArea()); roomFactoryEditor.setHeightQuality(getHeightQuality()); roomFactoryEditor.setIlluminationQuality(getIlluminationQuality()); roomFactoryEditor .setDistanceFromSanitaryInstalationsQuality(getDistanceFromSanitaryInstalationsQuality()); roomFactoryEditor.setSecurityQuality(getSecurityQuality()); roomFactoryEditor.setAgeQuality(getAgeQuality()); roomFactoryEditor.setObservations(getObservations()); roomFactoryEditor.setBegin(getNextPossibleValidFromDate()); return roomFactoryEditor;
    public RoomFactoryEditor getSpaceFactoryEditor() {    	final RoomFactoryEditor roomFactoryEditor = new RoomFactoryEditor();    	roomFactoryEditor.setSpace((Room) getSpace());    	roomFactoryEditor.setBlueprintNumber(getBlueprintNumber());    	roomFactoryEditor.setIdentification(getIdentification());    	roomFactoryEditor.setDescription(getDescription());    	roomFactoryEditor.setClassification(getRoomClassification().getPresentationCode());    	roomFactoryEditor.setArea(getArea());    	roomFactoryEditor.setHeightQuality(getHeightQuality());    	roomFactoryEditor.setIlluminationQuality(getIlluminationQuality());    	roomFactoryEditor.setDistanceFromSanitaryInstalationsQuality(getDistanceFromSanitaryInstalationsQuality());    	roomFactoryEditor.setSecurityQuality(getSecurityQuality());    	roomFactoryEditor.setAgeQuality(getAgeQuality());    	roomFactoryEditor.setObservations(getObservations());    	return roomFactoryEditor;    }