@@ -0,0 +1,1865 @@
+%0Apackage com.cross.services;%0A%0Aimport com.cross.dao.ProductDao;%0Aimport com.cross.dao.pojo.MyProduct;%0Aimport com.cross.dao.pojo.Product;%0Aimport java.util.List;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Service;%0A%0A%0A/*%0A      @author to Ibrahim Abdsaid Hanna @2016%0A                 ibrahim.seniore@gmail.com%0A    */%0A%0A @Service(%22productService%22)%0Apublic class ProductService %7B%0A    %0A     ProductDao productDao;%0A%0A   %0A   @Autowired%0A    public void setProductDao(ProductDao productDao) %7B%0A        this.productDao = productDao;%0A    %7D%0A%0A    %0A    public boolean registerNewProduct(Product product,String factoryID) %7B%0A        return productDao.registerNewProduct(product, factoryID);%0A    %7D%0A  %0A      public boolean existsProductName(String productName, String factoryID) %7B%09%0A        return  productDao.existsProductName(productName, factoryID);%0A    %7D%0A    %0A     public boolean existsProductSerial(String productSerial, String factoryID) %7B%09%0A           return productDao.existsProductSerial(productSerial, factoryID);%0A    %7D%0A     %0A      public Product getProduct(String productID)%7B%0A            return productDao.getProduct(productID);%0A      %7D%0A     %0A      public boolean updateProduct(Product product)%7B%0A           return productDao.updateProduct(product);%0A      %7D%0A     %0A       public String getProductName(String productID)%7B%0A           return productDao.getProductName(productID);%0A       %7D%0A       %0A        public String getProductSerialNumber(String productID)%7B%0A           return productDao.getProductSerialNumber(productID);%0A        %7D%0A        %0A      public List%3CMyProduct%3E getMyProducts(String factoryID)%7B%09%0A          return productDao.getMyProducts(factoryID);%0A      %7D   %0A      %0A      %0A       public boolean isOwner(String userID,String productID)%7B%0A           return productDao.isOwner(userID, productID);%0A       %7D%0A      %0A      %0A%7D%0A

Create ProductService.java