Package com.jeecms.cms.dao.main.impl

Source Code of com.jeecms.cms.dao.main.impl.ContentCheckDaoImpl

package com.jeecms.cms.dao.main.impl;

import org.springframework.stereotype.Repository;

import com.jeecms.cms.dao.main.ContentCheckDao;
import com.jeecms.cms.entity.main.ContentCheck;
import com.jeecms.common.hibernate3.HibernateBaseDao;

@Repository
public class ContentCheckDaoImpl extends HibernateBaseDao<ContentCheck, Long>
    implements ContentCheckDao {
  public ContentCheck findById(Long id) {
    ContentCheck entity = get(id);
    return entity;
  }

  public ContentCheck save(ContentCheck bean) {
    getSession().save(bean);
    return bean;
  }

  @Override
  protected Class<ContentCheck> getEntityClass() {
    return ContentCheck.class;
  }
}
TOP

Related Classes of com.jeecms.cms.dao.main.impl.ContentCheckDaoImpl

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.