Package com.mustafaiev.tair.cts.model

Examples of com.mustafaiev.tair.cts.model.Group


  public Group retrieveGroup(final Long id) throws DataNotRetrievedException {
    final Session session = this.hibernateTemplate.getSessionFactory()
        .openSession();
    final Query query = session.createQuery(RETRIEVE_GROUP_BY_ID);
    query.setLong(0, id);
    final Group group = (Group) query.uniqueResult();
    return group;
  }
View Full Code Here


    this.mapper = mapper;
  }

  @Override
  public void saveGroup(final GroupDTO group) throws DataNotStoredException {
    final Group t = this.mapper.map(group, Group.class);
    try {
      t.setPayer(group.getPayer());
      this.groupDAO.doSave(t);
    } catch (final Exception e) {
      LOGGER.error(e.getLocalizedMessage(), e);
    }
  }
View Full Code Here

    }
  }

  @Override
  public void updateGroup(final GroupDTO group) throws DataNotStoredException {
    final Group t = this.mapper.map(group, Group.class);
    try {
      this.groupDAO.doUpdate(t);
    } catch (final Exception e) {
      LOGGER.error(e.getLocalizedMessage(), e);
    }
View Full Code Here

TOP

Related Classes of com.mustafaiev.tair.cts.model.Group

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.