Package com.jeecms.cms.entity.main

Examples of com.jeecms.cms.entity.main.CmsAppInfo


      return null;
    }
  }

  public CmsAppInfo findById(Integer id) {
    CmsAppInfo entity = get(id);
    return entity;
  }
View Full Code Here


    getSession().save(bean);
    return bean;
  }

  public CmsAppInfo deleteById(Integer id) {
    CmsAppInfo entity = super.get(id);
    if (entity != null) {
      getSession().delete(entity);
    }
    return entity;
  }
View Full Code Here

  public void testFromSqlGetData() {

    SessionFactory sessionFactory = SpringUtils.readXmlWebRootForContext();
    Session session = sessionFactory.openSession();
    System.out.println("读取自己的appInfo表数据");
    CmsAppInfo cmslog = new CmsAppInfo();

    int recordCount = session.createSQLQuery("select * from jc_app_info ")
        .list().size();

    System.out.println("查询到数据jc_app_info表数据:" + recordCount + "条");
View Full Code Here

 
  private boolean vldExist(Integer id, WebErrors errors) {
    if (errors.ifNull(id, "id")) {
      return true;
    }
    CmsAppInfo entity = manager.findById(id);
    if (errors.ifNotExist(entity, CmsAppInfo.class, id)) {
      return true;
    }
    return false;
  }
View Full Code Here

    return dao.getDefModel();
  }

  @Transactional(readOnly = true)
  public CmsAppInfo findById(Integer id) {
    CmsAppInfo entity = dao.findById(id);
    return entity;
  }
View Full Code Here

    return bean;
  }

  public CmsAppInfo update(CmsAppInfo bean) {
    Updater<CmsAppInfo> updater = new Updater<CmsAppInfo>(bean);
    CmsAppInfo entity = dao.updateByUpdater(updater);
    return entity;
  }
View Full Code Here

    CmsAppInfo entity = dao.updateByUpdater(updater);
    return entity;
  }

  public CmsAppInfo deleteById(Integer id) {
    CmsAppInfo bean = dao.deleteById(id);
    return bean;
  }
View Full Code Here

TOP

Related Classes of com.jeecms.cms.entity.main.CmsAppInfo

Copyright © 2018 www.massapicom. 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.