Class Product


  • public class Product
    extends Document
    Main product containing the data that is common for all variants. A product may represent a master-variant relation ship. A variant is associated to a single Product and cannot have variants again - those will be ignored. It should only contain data special to that variant. Data that is common to all variants should be set at master level.
    • Field Detail

      • variants

        public Document[] variants
        for products without variants, it can be null or rather us a document directly.
    • Constructor Detail

      • Product

        public Product​(String id)