Class CategoryService

java.lang.Object
ntnu.idatt2016.v233.SmartMat.service.product.CategoryService

@Service public class CategoryService extends Object
Service for Categories
Version:
1.0
  • Constructor Details

    • CategoryService

      public CategoryService()
  • Method Details

    • getCategoryByName

      public Optional<Category> getCategoryByName(String name)
      gets a category
      Parameters:
      name - The name of the category
      Returns:
      An optional containing the category if it exists