Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.SubCategoryDAO


public class SubCategoryService implements RepositoryService<SubCategory> {

  @Override
  public SubCategory store(SubCategory subCategory) {
   
    SubCategoryDAO repository = new SubCategoryDAO();
    return repository.save(subCategory);
  }
View Full Code Here


  }

  @Override
  public void remove(SubCategory subCategory) {
   
    SubCategoryDAO repository = new SubCategoryDAO();
    repository.delete(subCategory);
   
  }
View Full Code Here

  }

  @Override
  public Collection<SubCategory> getAll() {
   
    SubCategoryDAO repository = new SubCategoryDAO();
    return repository.getAll();
  }
View Full Code Here

    return repository.getAll();
  }

  @Override
  public SubCategory getById(Serializable id) {
    SubCategoryDAO repository = new SubCategoryDAO();
    return repository.get(id);
  }
View Full Code Here

TOP

Related Classes of com.ateam.webstore.dao.SubCategoryDAO

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.