Class Category

java.lang.Object
com.esprit.models.films.Category

@Entity(name="FilmCategory") public class Category extends Object
Represents a category of films.
  • Field Details

  • Constructor Details

    • Category

      public Category(Long id, String name, String description)
      Constructor with id, name, and description for database mapping.
      Parameters:
      id - the id of the category
      name - the name of the category
      description - the description of the category
    • Category

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