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

📄 orderitem.java

📁 利用javaEE开发而实现图书的购买的一个系统
💻 JAVA
字号:
package org.yangkang.bookshop.vo;

/**
 * Orderitem entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Orderitem implements java.io.Serializable {

	// Fields

	private Integer orderitemId;
	private Order order;
	private Book book;
	private Integer quantity;

	// Constructors

	//** default constructor *//*
	public Orderitem() {
	}
	
	public Orderitem(Integer bookId,Integer quantity){
		this.book.setBookId(bookId);
		if(quantity==null){
			this.quantity = 0;
		}
		this.quantity = quantity;		
	}

	//** full constructor *//*
	public Orderitem(Order order, Book book, Integer quantity) {
		this.order = order;
		this.book = book;
		if(quantity==null){
			this.quantity = 0;
		}
		this.quantity = quantity;
	}

	// Property accessors

	public Integer getOrderitemId() {
		return this.orderitemId;
	}

	public void setOrderitemId(Integer orderitemId) {
		this.orderitemId = orderitemId;
	}

	public Order getOrder() {
		return this.order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Book getBook() {
		return this.book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

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

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

}

⌨️ 快捷键说明

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