Class ProductCategory

java.lang.Object
com.esprit.models.products.ProductCategory

@Entity public class ProductCategory extends Object
Represents a category of products.
  • Field Details

    • id

      private Long id
    • categoryName

      private String categoryName
    • description

      private String description
    • products

      private List<Product> products
  • Constructor Details

    • ProductCategory

      public ProductCategory(String categoryName, String description)
      Constructor without id for creating new category instances.
      Parameters:
      categoryName - The name of the category.
      description - The description of the category.