public static Object translateOutputEprintSubject(BaseModel<?> oldModel) { EprintSubjectClp newModel = new EprintSubjectClp(); newModel.setModelAttributes(oldModel.getModelAttributes()); newModel.setEprintSubjectRemoteModel(oldModel); return newModel; }
public static Object translateInputEprintSubject(BaseModel<?> oldModel) { EprintSubjectClp oldClpModel = (EprintSubjectClp) oldModel; BaseModel<?> newModel = oldClpModel.getEprintSubjectRemoteModel(); newModel.setModelAttributes(oldClpModel.getModelAttributes()); return newModel; }