Class Comment

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

@Entity(name="ProductComment") public class Comment extends Object
The Comment class represents a comment made by a client on a product.
  • Field Details

    • id

      private Long id
    • client

      private Client client
    • commentText

      private String commentText
    • product

      private Product product
  • Constructor Details

    • Comment

      public Comment(Client client, String commentText, Product product)
      Constructor without id for creating new comment instances.
      Parameters:
      client - The client who made the comment.
      commentText - The comment text.
      product - The product associated with the comment.