Class Review

java.lang.Object
com.goldenleaf.shop.model.Review

@Entity public class Review extends Object

Represents a review left by a Customer for a Product. Each review contains an author, text content, a rating from 1 to 5, and the product it refers to.

The class validates all fields both in the constructor and setters to ensure that no review can be created with invalid or missing data.

See Also: