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

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

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

import org.springframework.stereotype.Repository;

import com.jeecms.cms.dao.main.ContentTxtDao;
import com.jeecms.cms.entity.main.ContentTxt;
import com.jeecms.common.hibernate3.HibernateBaseDao;

@Repository
public class ContentTxtDaoImpl extends HibernateBaseDao<ContentTxt, Integer>
    implements ContentTxtDao {
  public ContentTxt findById(Integer id) {
    ContentTxt entity = get(id);
    return entity;
  }

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

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

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

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.