productitem.java

来自「一个用Java语言实现的库存管理系统」· Java 代码 · 共 94 行

JAVA
94
字号
package main.data.domain;

import java.util.HashSet;
import java.util.Set;


/**
 * ProductItem generated by MyEclipse - Hibernate Tools
 */

public class ProductItem  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Product product;
     private Integer number;
     private Set productItemDetails = new HashSet(0);
     private Set productCustomerItems = new HashSet(0);


    // Constructors

    /** default constructor */
    public ProductItem() {
    }

	/** minimal constructor */
    public ProductItem(Product product, Integer number) {
        this.product = product;
        this.number = number;
    }
    
    /** full constructor */
    public ProductItem(Product product, Integer number, Set productItemDetails, Set productCustomerItems) {
        this.product = product;
        this.number = number;
        this.productItemDetails = productItemDetails;
        this.productCustomerItems = productCustomerItems;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Product getProduct() {
        return this.product;
    }
    
    public void setProduct(Product product) {
        this.product = product;
    }

    public Integer getNumber() {
        return this.number;
    }
    
    public void setNumber(Integer number) {
        this.number = number;
    }

    public Set getProductItemDetails() {
        return this.productItemDetails;
    }
    
    public void setProductItemDetails(Set productItemDetails) {
        this.productItemDetails = productItemDetails;
    }

    public Set getProductCustomerItems() {
        return this.productCustomerItems;
    }
    
    public void setProductCustomerItems(Set productCustomerItems) {
        this.productCustomerItems = productCustomerItems;
    }
   








}

⌨️ 快捷键说明

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