⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 item.java

📁 网上商店 新增功能: 1
💻 JAVA
字号:
package netstore.businessobjects;

import java.io.Serializable;
import java.util.Set;
import java.util.HashSet;
import org.apache.commons.lang.builder.ToStringBuilder;

public class Item extends BaseBusinessObject implements Serializable {

    private String name;
    private String modelNumber;
    private String description;
    private String feature;
    private String smallImageURL;
    private String largeImageURL;
    private Double basePrice;
    private Set categories=new HashSet();
    private Set lineItems=new HashSet();

    public Item(String name, String modelNumber, String description, String feature, String smallImageURL, String largeImageURL, Double basePrice, Integer version, Set categories, Set lineItems) {
        super(version);
        this.name = name;
        this.modelNumber = modelNumber;
        this.description = description;
        this.feature = feature;
        this.smallImageURL = smallImageURL;
        this.largeImageURL = largeImageURL;
        this.basePrice = basePrice;
        this.categories = categories;
        this.lineItems = lineItems;
    }

    public Item() {
    }

    public Item(Set categories, Set lineItems) {
        this.categories = categories;
        this.lineItems = lineItems;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModelNumber() {
        return this.modelNumber;
    }

    public void setModelNumber(String modelNumber) {
        this.modelNumber = modelNumber;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getFeature() {
        return this.feature;
    }

    public void setFeature(String feature) {
        this.feature = feature;
    }

    public String getSmallImageURL() {
        return this.smallImageURL;
    }

    public void setSmallImageURL(String smallImageURL) {
        this.smallImageURL = smallImageURL;
    }

    public String getLargeImageURL() {
        return this.largeImageURL;
    }

    public void setLargeImageURL(String largeImageURL) {
        this.largeImageURL = largeImageURL;
    }

    public Double getBasePrice() {
        return this.basePrice;
    }

    public void setBasePrice(Double basePrice) {
        this.basePrice = basePrice;
    }

    public Set getCategories() {
        return this.categories;
    }

    public void setCategories(Set categories) {
        this.categories = categories;
    }

    public Set getLineItems() {
        return this.lineItems;
    }

    public void setLineItems(Set lineItems) {
        this.lineItems = lineItems;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -