java.lang.Object
com.dmasone.identity.catalog.infrastructure.persistence.ProductJpaEntity

@Entity(name="CatalogProduct") public class ProductJpaEntity extends Object
Persistence representation of catalog products. The entity is kept in the infrastructure package so JPA mapping choices do not leak into the product stock rule.
  • Constructor Details

    • ProductJpaEntity

      protected ProductJpaEntity()
    • ProductJpaEntity

      public ProductJpaEntity(Long id, String sku, String name, BigDecimal price, int availableQuantity)
  • Method Details

    • apply

      public void apply(Product product)
    • getId

      public Long getId()
    • getSku

      public String getSku()
    • getName

      public String getName()
    • getPrice

      public BigDecimal getPrice()
    • getAvailableQuantity

      public int getAvailableQuantity()