return oldModel;
}
public static Object translateInputWarrantUserUniqueId(
BaseModel<?> oldModel) {
WarrantUserUniqueIdClp oldCplModel = (WarrantUserUniqueIdClp)oldModel;
Thread currentThread = Thread.currentThread();
ClassLoader contextClassLoader = currentThread.getContextClassLoader();
try {
currentThread.setContextClassLoader(_classLoader);
try {
Class<?> newModelClass = Class.forName("com.warrantchange.model.impl.WarrantUserUniqueIdImpl",
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("setUniqueId",
new Class[] { String.class });
String value1 = oldCplModel.getUniqueId();
method1.invoke(newModel, value1);
Method method2 = newModelClass.getMethod("setUserId",
new Class[] { Long.TYPE });
Long value2 = new Long(oldCplModel.getUserId());
method2.invoke(newModel, value2);
Method method3 = newModelClass.getMethod("setCreateDate",
new Class[] { Date.class });
Date value3 = oldCplModel.getCreateDate();
method3.invoke(newModel, value3);
Method method4 = newModelClass.getMethod("setModifiedDate",
new Class[] { Date.class });
Date value4 = oldCplModel.getModifiedDate();
method4.invoke(newModel, value4);
Method method5 = newModelClass.getMethod("setSentEmail",
new Class[] { String.class });
String value5 = oldCplModel.getSentEmail();
method5.invoke(newModel, value5);
Method method6 = newModelClass.getMethod("setSentDate",
new Class[] { Date.class });
Date value6 = oldCplModel.getSentDate();
method6.invoke(newModel, value6);
Method method7 = newModelClass.getMethod("setSentOmicode",
new Class[] { String.class });
String value7 = oldCplModel.getSentOmicode();
method7.invoke(newModel, value7);
return newModel;
}