LFCertificateActivity lfCertificateActivity) {
if (lfCertificateActivity instanceof LFCertificateActivityImpl) {
return lfCertificateActivity;
}
LFCertificateActivityImpl lfCertificateActivityImpl = new LFCertificateActivityImpl();
lfCertificateActivityImpl.setNew(lfCertificateActivity.isNew());
lfCertificateActivityImpl.setPrimaryKey(lfCertificateActivity.getPrimaryKey());
lfCertificateActivityImpl.setCertificateID(lfCertificateActivity.getCertificateID());
lfCertificateActivityImpl.setActivityName(lfCertificateActivity.getActivityName());
lfCertificateActivityImpl.setDatacount(lfCertificateActivity.getDatacount());
lfCertificateActivityImpl.setPeriodType(lfCertificateActivity.getPeriodType());
lfCertificateActivityImpl.setPeriod(lfCertificateActivity.getPeriod());
return lfCertificateActivityImpl;
}