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

📄 book.java

📁 利用javaEE开发而实现图书的购买的一个系统
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -