photo.java

来自「网上购物系统」· Java 代码 · 共 75 行

JAVA
75
字号
package tarena.entity;

import java.sql.Blob;



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

public class Photo implements java.io.Serializable {

	// Fields

	private Integer id;
	private Product product;
	private Blob image;
	private String description;

	// Constructors

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

	/** minimal constructor */
	public Photo(Product product, Blob image) {
		this.product = product;
		this.image = image;
	}

	/** full constructor */
	public Photo(Product product, Blob image, String description) {
		this.product = product;
		this.image = image;
		this.description = description;
	}

	// 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 Blob getImage() {
		return this.image;
	}

	public void setImage(Blob image) {
		this.image = image;
	}

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

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

}

⌨️ 快捷键说明

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