public List<Customer> getCustomerList(Member member, ProjectGroup projectGroup) {
    Session session = genericDAO.getSession();
    Criteria cr = session.createCriteria(Customer.class);
    cr.add(Restrictions.eq("projectGroup", projectGroup));
    if (member.getAuth().equals("1")) cr.add(Restrictions.eq("member", member));
    List<Customer> resultList = cr.list();

    return resultList;
  }
 public void updateCustomer(Customer customer) {
   genericDAO.update(customer);
 }
 public Customer getCustomer(String id) {
   Customer customer = genericDAO.get(Customer.class, id);
   return customer;
 }
 public void insertCustomer(Customer customer) {
   genericDAO.save(customer);
 }