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

📄 abractproduct.java

📁 struts+spring+hibernate例子
💻 JAVA
字号:
package com.shop.data;

public class AbractProduct {
	protected Integer id;

	protected String name;

	/**
	 * 图片的地址
	 */
	protected String image;

	/**
	 * 关注次数,如本周关注次数、总关注次数等。
	 */
	protected Integer viewpopluarity;

	protected Double price;

	/**
	 * @roseuid 490823460399
	 */
	public AbractProduct() {

	}

	public AbractProduct(Integer id,String name,Double price) {
		this.id = id;
		this.name = name;
		this.price = price;
	}
	
	public AbractProduct(Integer id,String name,Double price,Integer viewpopluarity) {
		this.id = id;
		this.name = name;
		this.price = price;
		this.viewpopluarity=viewpopluarity;
	}
	
	public Integer getId() {
		return id;
	}

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

	public String getImage() {
		return image;
	}

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

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getPrice() {
		return price;
	}

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

	public Integer getViewpopluarity() {
		return viewpopluarity;
	}

	public void setViewpopluarity(Integer viewpopluarity) {
		this.viewpopluarity = viewpopluarity;
	}
	
	public String toString(){
		return this.id+","+this.name+","+this.viewpopluarity;
	}
}

⌨️ 快捷键说明

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