Class Review

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

@Entity public class Review extends Object
The Review class represents a user's review of a product.
  • Field Details

    • id

      private Long id
    • client

      private Client client
    • rating

      private int rating
    • product

      private Product product
  • Constructor Details

    • Review

      public Review(Client client, int rating, Product product)
      Constructor without id for creating new review instances.
      Parameters:
      client - the client who gave the review
      rating - the rating given by the client
      product - the product associated with the review