Package com.jeecms.cms.entity.main

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


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


  /**
   * @see ChannelTxtMng#update(ChannelTxt, Channel)
   */
  public ChannelTxt update(ChannelTxt txt, Channel channel) {
    ChannelTxt entity = dao.findById(channel.getId());
    if (entity == null) {
      entity = save(txt, channel);
      channel.getChannelTxtSet().add(entity);
      return entity;
    } else {
      if (txt.isAllBlank()) {
        channel.getChannelTxtSet().clear();
        return null;
      } else {
        Updater<ChannelTxt> updater = new Updater<ChannelTxt>(txt);
        entity = dao.updateByUpdater(updater);
        entity.blankToNull();
        return entity;
      }
    }
  }
View Full Code Here

TOP

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

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.