package com.izouma.dingdong.domain.merchant;

import com.izouma.dingdong.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.Entity;
import java.io.Serializable;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
//@JsonIgnoreProperties(value = { "hibernateLazyInitializer"})
@ApiModel(value = "GoodsSpecification", description = "商品规格")
public class GoodsSpecification extends BaseEntity implements Serializable {

    @ApiModelProperty("商品id")
    private Long goodsId;

    private String name;

    @ApiModelProperty(value = "价钱", name = "amount")
    private BigDecimal amount;
}
