return oldModel;
}
public static Object translateInputWarrantUserEmailLog(
BaseModel<?> oldModel) {
WarrantUserEmailLogClp oldCplModel = (WarrantUserEmailLogClp)oldModel;
Thread currentThread = Thread.currentThread();
ClassLoader contextClassLoader = currentThread.getContextClassLoader();
try {
currentThread.setContextClassLoader(_classLoader);
try {
Class<?> newModelClass = Class.forName("com.warrantchange.model.impl.WarrantUserEmailLogImpl",
true, _classLoader);
Object newModel = newModelClass.newInstance();
Method method0 = newModelClass.getMethod("setId",
new Class[] { Long.TYPE });
Long value0 = new Long(oldCplModel.getId());
method0.invoke(newModel, value0);
Method method1 = newModelClass.getMethod("setSubject",
new Class[] { String.class });
String value1 = oldCplModel.getSubject();
method1.invoke(newModel, value1);
Method method2 = newModelClass.getMethod("setBodyContent",
new Class[] { String.class });
String value2 = oldCplModel.getBodyContent();
method2.invoke(newModel, value2);
Method method3 = newModelClass.getMethod("setUserId",
new Class[] { Long.TYPE });
Long value3 = new Long(oldCplModel.getUserId());
method3.invoke(newModel, value3);
Method method4 = newModelClass.getMethod("setCreateDate",
new Class[] { Date.class });
Date value4 = oldCplModel.getCreateDate();
method4.invoke(newModel, value4);
Method method5 = newModelClass.getMethod("setModifiedDate",
new Class[] { Date.class });
Date value5 = oldCplModel.getModifiedDate();
method5.invoke(newModel, value5);
return newModel;
}