Example #1
0
  public static Object translateOutputEprintSubject(BaseModel<?> oldModel) {
    EprintSubjectClp newModel = new EprintSubjectClp();

    newModel.setModelAttributes(oldModel.getModelAttributes());

    newModel.setEprintSubjectRemoteModel(oldModel);

    return newModel;
  }
Example #2
0
  public static Object translateInputEprintSubject(BaseModel<?> oldModel) {
    EprintSubjectClp oldClpModel = (EprintSubjectClp) oldModel;

    BaseModel<?> newModel = oldClpModel.getEprintSubjectRemoteModel();

    newModel.setModelAttributes(oldClpModel.getModelAttributes());

    return newModel;
  }