private void loadChildEntities(Instrument instrument) throws IOException { if (instrument.getUpgradedInstrument() != null) { instrument.setUpgradedInstrument(get(instrument.getUpgradedInstrument().getId())); } else { instrument.setUpgradedInstrument(null); } }
private void applyChanges(Instrument target, Instrument source) { target.setInstrumentModel(source.getInstrumentModel()); target.setName(source.getName()); target.setSerialNumber(source.getSerialNumber()); target.setDateCommissioned(source.getDateCommissioned()); target.setDateDecommissioned(source.getDateDecommissioned()); target.setUpgradedInstrument(source.getUpgradedInstrument()); }