Package com.jeecms.cms.dao.assist.impl

Source Code of com.jeecms.cms.dao.assist.impl.CmsGuestbookExtDaoImpl

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;
  }
}
TOP

Related Classes of com.jeecms.cms.dao.assist.impl.CmsGuestbookExtDaoImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.