Class PurchaseItem

    • Field Detail

      • id

        private int id
      • description

        @NotNull(message="item description is required")
        @Size(max=20,
              message="description too large")
        private @NotNull(message="item description is required") @Size(max=20,message="description too large") String description
      • amount

        @NotNull(message="item amount is required")
        private @NotNull(message="item amount is required") BigDecimal amount
      • count

        @Min(value=1L,
             message="item count is required")
        private @javax.validation.constraints.Min(value=1L, message="item count is required") int count
    • Constructor Detail

      • PurchaseItem

        public PurchaseItem()