Package com.jada.jpa.entity

Examples of com.jada.jpa.entity.CustomerClass


public class CustomerClassDAO extends CustomerClass {
  private static final long serialVersionUID = -485999513228976925L;

  public static CustomerClass load(String siteId, Long customerClassId) throws SecurityException, Exception {
      EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
    CustomerClass customerClass = (CustomerClass) em.find(CustomerClass.class, customerClassId);
    if (!customerClass.getSite().getSiteId().equals(siteId)) {
      throw new SecurityException();
    }
    return customerClass;
  }
View Full Code Here


      em.persist(categoryLanguage);

      category.setCategoryLanguages(null);
      em.persist(category);
     
      CustomerClass customerClass = new CustomerClass();
      customerClass.setCustClassName(Constants.CUSTOMER_CLASS_REGULAR);
      customerClass.setSystemRecord(Constants.VALUE_YES);
      customerClass.setRecUpdateBy(userId);
      customerClass.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      customerClass.setRecCreateBy(userId);
      customerClass.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      customerClass.setSite(site);
      em.persist(customerClass);

      ProductClass productClass = new ProductClass();
      productClass.setProductClassName(Constants.PRODUCT_CLASS_REGULAR);
      productClass.setSystemRecord(Constants.VALUE_YES);
View Full Code Here

TOP

Related Classes of com.jada.jpa.entity.CustomerClass

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.