diff --git a/spring-geode/src/test/java/example/app/pos/model/Product.java b/spring-geode/src/test/java/example/app/pos/model/Product.java index 14793f31..b8eb0a18 100644 --- a/spring-geode/src/test/java/example/app/pos/model/Product.java +++ b/spring-geode/src/test/java/example/app/pos/model/Product.java @@ -48,10 +48,30 @@ public class Product { @Id @NonNull private String name; + // TODO Introduce a Price type, perhaps (?), encapsulating amount and currency (e.g. USD) private BigDecimal price; + private Category category; + public Product havingPrice(BigDecimal price) { this.price = price; return this; } + + public Product in(Category category) { + this.category = category; + return this; + } + + /** + * @see List of examples for classifying consumer products + */ + public enum Category { + + CONVENIENCE, + SHOPPING, + SPECIALTY, + UNSOUGHT + + } }