Package com.bhn.risk.order.domain
Class CartItem
java.lang.Object
com.bhn.risk.common.SmartObject<CartItem>
com.bhn.risk.order.domain.CartItem
CartItem class.
- Version:
- $Id: $Id
- Author:
- pvela00
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.bhn.risk.domain.ProductInfocom.bhn.risk.domain.ProductLineInfocom.bhn.risk.domain.ProductType -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bhn.risk.common.SmartObject
addSerializableClass, addSerializableClass, addSerializableClass, compareTo, copy, createMapper, equals, fromString, fromString, hashCode, toExposedString, toString, toString, toString
-
Field Details
-
itemName
@NotBlank(errorCode="cartItem.itemName.blank", message="cartItem.itemName cannot be blank") public String itemName -
itemCode
@NotNull(errorCode="cartItem.itemCode.null", message="cartItem.itemCode mandatory") @NotBlank(errorCode="cartItem.itemCode.blank", message="cartItem.itemCode cannot be blank") @Length(max=50, errorCode="cartItem.itemCode.invalidLength", message="Max length of cartItem.itemCode is 50 characters") public String itemCode -
bhnIID
@NotBlank(errorCode="cartItem.bhnIID.blank", message="cartItem.bhnIID cannot be blank") @Length(max=10, errorCode="cartItem.bhnIID.invalidLength", message="Max length of cartItem.bhnIID is 10 characters") public String bhnIID -
productLineId
@NotBlank(errorCode="cartItem.productLineId.blank", message="cartItem.productLineId cannot be blank") @Length(max=26, errorCode="cartItem.productLineId.invalidLength", message="Max length of cartItem.productLineId is 26 characters") public String productLineId -
productLineInfo
@AssertValid public com.bhn.risk.domain.ProductLineInfo productLineInfo -
description
@NotBlank(errorCode="cartItem.description.blank", message="cartItem.description cannot be blank") public String description -
productId
@NotBlank(errorCode="cartItem.productId.blank", message="cartItem.productId cannot be blank") @Length(max=26, errorCode="cartItem.productId.invalidLength", message="Max length of cartItem.productId is 26 characters") public String productId -
productInfo
@AssertValid public com.bhn.risk.domain.ProductInfo productInfo -
quantity
@NotNull(errorCode="cartItem.quantity.null", message="cartItem.quantity is mandatory") @Min(value=1.0, errorCode="cartItem.quantity.invalid", message="cartItem.quantity should be greater than 0") public Integer quantity -
unitPrice
@NotNull(errorCode="cartItem.unitPrice.null", message="cartItem.unitPrice is mandatory") @ValidateWithMethod(methodName="isValidPrice", errorCode="cartItem.unitPrice.invalid", message="cartItem.unitPrice should be greater than zero", parameterType=java.math.BigDecimal.class) public BigDecimal unitPrice -
productType
public com.bhn.risk.domain.ProductType productType -
personalMessage
@NotBlank(errorCode="cartItem.personalMessage.blank", message="PersonalMessage cannot be blank") public String personalMessage
-
-
Constructor Details
-
CartItem
public CartItem()
-