Examples of Customer


Examples of com.itedge.solutionmanager.domain.impl.Customer

          Address customerAddress = new Address();
          customerAddress.setTelNumber(taskData.getContactPersonPhone());
          customerContact.setAddress(customerAddress);
          customerContact.setNotes(taskData.getContactPersonNotes());
          // create new customer from task data
          Customer newCustomer = new Customer();
          newCustomer.setStatus(CustomerStatus.ACTIVE);
          newCustomer.setName(taskData.getCustomerName());
          newCustomer.setDescription(taskData.getCustomerDescription());
          contactPersonService.persist(customerContact);
          newCustomer.addContactPerson(customerContact);
          //set to solution
          linkedObject.setCustomer(newCustomer);
          //start new customer process
          customerProcessService.createEntityProcess(newCustomer);
      } else {
View Full Code Here

Examples of com.jada.jpa.entity.Customer

  String custPassword;
  String custSource;
  String custSourceRef;
  public static Customer load(String siteId, Long custId) throws SecurityException, Exception {
      EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
    Customer customer = (Customer) em.find(Customer.class, custId);
    if (!customer.getSiteId().equals(siteId)) {
      throw new SecurityException();
    }
    return customer;
  }
View Full Code Here

Examples of com.jayway.demo.library.domain.Customer

    @POST
    @Consumes("application/vnd.demo.library.customer+json")
    @Produces("application/vnd.demo.library.customer+json")
    @Linkable(value = LinkableIds.CUSTOMER_NEW_ID, templateClass = CustomerDto.class)
    public Response newCustomer(CustomerDto customer) {
        Customer newCustomer = customerRepository.newCustomer(customer.getName());
        return HateoasResponse
                .created(LinkableIds.CUSTOMER_DETAILS_ID, newCustomer.getId())
                .selfLink(LinkableIds.CUSTOMER_DETAILS_ID, newCustomer.getId())
                .entity(CustomerDto.fromBean(newCustomer)).build();
    }
View Full Code Here

Examples of com.jpoweredcart.common.entity.sale.Customer

 
  @Override
  public UserDetails loadUserByUsername(String email)
      throws UsernameNotFoundException {
    try{
      Customer customer = userService.getCustomerByEmail(email);
      if(customer==null) throw new EmptyResultDataAccessException(1);
     
      CartUserDetails userDetails = new CartUserDetails();
      userDetails.userId = customer.getId();
      userDetails.salt = customer.getSalt();
      userDetails.password = customer.getPassword();
      userDetails.username = customer.getEmail();
      userDetails.enabled = customer.getStatus()==1;
     
      logger.debug("Found user email={}, enabled={}", email, userDetails.enabled);
     
      return userDetails;
     
View Full Code Here

Examples of com.liferay.faces.demos.dto.Customer

  @PostConstruct
  public void postConstruct() {
    allCustomers = new ArrayList<Customer>();

    BookingService bookingService = getBookingService();
    Customer customer = new Customer(ID_BRIAN_GREEN, "Brian", "Green");
    customer.setBookings(bookingService.getBookingsByCustomerId(ID_BRIAN_GREEN));
    allCustomers.add(customer);
    customer = new Customer(ID_LIZ_KESSLER, "Liz", "Kessler");
    customer.setBookings(bookingService.getBookingsByCustomerId(ID_LIZ_KESSLER));
    allCustomers.add(customer);
    customer = new Customer(ID_RICH_SHEARER, "Rich", "Shearer");
    customer.setBookings(bookingService.getBookingsByCustomerId(ID_RICH_SHEARER));
    allCustomers.add(customer);
  }
View Full Code Here

Examples of com.mjs_svc.possibility.models.Customer

        super();
        Session sess = HibernateUtil.getSessionFactory().getCurrentSession();
        sess.beginTransaction();
        Vector<Object[]> customers = new Vector<Object[]>();
        for (Object cus : sess.createQuery("from Customer" + hql).list()) {
            Customer c = (Customer) cus;
            customers.add(new Object[] {
                c.getId(),
                c.getUser().getUsername(),
                c.getUser().getFirstName(),
                c.getUser().getLastName()
            });
        }
        sess.getTransaction().commit();
        data = new Object[customers.size()][getColumnCount()];
        for (int i = 0; i < customers.size(); i++) {
View Full Code Here

Examples of com.mkyong.customer.model.Customer

  }
 
  //add a new customer data into database
  public String addCustomer(){
   
    Customer cust = new Customer();
    cust.setName(getName());
    cust.setAddress(getAddress());
   
    customerBo.addCustomer(cust);
   
    clearForm();
   
View Full Code Here

Examples of com.myeis.services.Customer

      J2C_MyEIS_CustomerInfoProxy aProxy = new J2C_MyEIS_CustomerInfoProxy();

      // user code begin {proxy_method_calls}
      String custNum = "33333";
      Customer customer = aProxy.getCustomer(custNum);
      System.out.println("Customer number: " + custNum);
      System.out.println("Customer name:   " + customer.getFirstName() + " " + customer.getLastName());
     
      // user code end

    }
    catch (Exception e) {
View Full Code Here

Examples of com.mysema.query.jpa.domain.Customer

                                             .list(catalog.effectiveDate))))
                .groupBy(ord).having(price.amount.sum().gt(0l))
                .orderBy(price.amount.sum().desc())
                .select(ord.id, price.amount.sum(), item.count());

        Customer c1 = new Customer();
        Catalog c2 = new Catalog();

        query().from(ord)
               .join(ord.lineItems, item).join(item.product, product)
               .from(catalog).join(catalog.prices, price).where(
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.tpcc.pojo.Customer

        if (!rs.next()) {
          throw new RuntimeException("C_ID=" + c_id + " C_D_ID=" + c_d_id
              + " C_W_ID=" + c_w_id + " not found!");
        }

        Customer c = TPCCUtil.newCustomerFromResults(rs);
        c.c_id = c_id;
        c.c_last = rs.getString("c_last");
        rs.close();
        return c;
      }
View Full Code Here
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.