book.java

来自「利用javaEE开发而实现图书的购买的一个系统」· Java 代码 · 共 109 行

JAVA
109
字号
package org.yangkang.bookshop.vo;

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

/**
 * Book entity.
 * 
 * @author MyEclipse Persistence Tools
 */
public class Book implements java.io.Serializable {

	// Fields

	private Integer bookId;
	private Catalog catalog;
	private String bookname;
	private Integer price;
	private String picture;
	private Integer quantity;
	private Set orderitems = new HashSet(0);

	// Constructors

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

	//** minimal constructor *//*
	public Book(Integer bookId, Catalog catalog, String bookname, Integer price,
			String picture, Integer quantity) {
		this.catalog = catalog;
		this.bookname = bookname;
		this.price = price;
		this.picture = picture;
		this.quantity = quantity;
	}

	//** full constructor *//*
	public Book(Integer bookId, Catalog catalog, String bookname, Integer price,
			String picture, Integer quantity, Set orderitems) {
		this.catalog = catalog;
		this.bookname = bookname;
		this.price = price;
		this.picture = picture;
		this.quantity = quantity;
		this.orderitems = orderitems;
	}

	// Property accessors

	public Integer getBookId() {
		return this.bookId;
	}

	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}

	public Catalog getCatalog() {
		return this.catalog;
	}

	public void setCatalog(Catalog catalog) {
		this.catalog = catalog;
	}

	public String getBookname() {
		return this.bookname;
	}

	public void setBookname(String bookname) {
		this.bookname = bookname;
	}

	public Integer getPrice() {
		return this.price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public String getPicture() {
		return this.picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public Integer getQuantity() {
		return this.quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public Set getOrderitems() {
		return this.orderitems;
	}

	public void setOrderitems(Set orderitems) {
		this.orderitems = orderitems;
	}

}

⌨️ 快捷键说明

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