package com.jeecms.cms.dao.assist.impl;
import org.springframework.stereotype.Repository;
import com.jeecms.cms.dao.assist.CmsGuestbookExtDao;
import com.jeecms.cms.entity.assist.CmsGuestbookExt;
import com.jeecms.common.hibernate3.HibernateBaseDao;
@Repository
public class CmsGuestbookExtDaoImpl extends
HibernateBaseDao<CmsGuestbookExt, Integer> implements
CmsGuestbookExtDao {
public CmsGuestbookExt findById(Integer id) {
CmsGuestbookExt entity = get(id);
return entity;
}
public CmsGuestbookExt save(CmsGuestbookExt bean) {
getSession().save(bean);
return bean;
}
public CmsGuestbookExt deleteById(Integer id) {
CmsGuestbookExt entity = super.get(id);
if (entity != null) {
getSession().delete(entity);
}
return entity;
}
@Override
protected Class<CmsGuestbookExt> getEntityClass() {
return CmsGuestbookExt.class;
}
}