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

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

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

import org.springframework.stereotype.Repository;

import com.jeecms.cms.dao.main.ChannelTxtDao;
import com.jeecms.cms.entity.main.ChannelTxt;
import com.jeecms.common.hibernate3.HibernateBaseDao;

@Repository
public class ChannelTxtDaoImpl extends HibernateBaseDao<ChannelTxt, Integer>
    implements ChannelTxtDao {
  public ChannelTxt findById(Integer id) {
    ChannelTxt entity = get(id);
    return entity;
  }

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

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

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

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.