Package com.ateam.webstore.dao

Examples of com.ateam.webstore.dao.CategoryDAO


public class CategoryService implements RepositoryService<Category> {

  @Override
  public Category store(Category category) {
   
    CategoryDAO repository = new CategoryDAO();
    return repository.save(category);
  }
View Full Code Here


  }

  @Override
  public void remove(Category category) {
   
    CategoryDAO repository = new CategoryDAO();
    repository.delete(category);
   
  }
View Full Code Here

  }

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

    return repository.getAll();
  }

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

TOP

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

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.