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

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

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

import org.springframework.stereotype.Repository;

import com.jeecms.cms.dao.main.ContentExtDao;
import com.jeecms.cms.entity.main.ContentExt;
import com.jeecms.common.hibernate3.HibernateBaseDao;

@Repository
public class ContentExtDaoImpl extends HibernateBaseDao<ContentExt, Integer>
    implements ContentExtDao {
  public ContentExt findById(Integer id) {
    ContentExt entity = get(id);
    return entity;
  }

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

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

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

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.