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

📄 product.java

📁 XDoclet 使自动生成部署描述符更为便利。XDoclet 是一个代码生成实用程序
💻 JAVA
字号:
package test.hibernate;



import java.math.BigDecimal;



/**

 * @hibernate.class

 *  table="PRODUCTS"

 *  discriminator-value="null"

 *  dynamic-update="true"

 * @hibernate.discriminator

 *  column="PRODUCT_TYPE"

 *  type="string"

 *  length="16"

 *  not-null="false"

 * @hibernate.jcs-cache

 *  usage="read-only"

 * 

 * @author Administrator

 */

public class Product extends Persistent implements Updateable {

	

	private String description;

	private String code;

	private BigDecimal price;

	private byte[] image;

	private String updateComment;



	/**

	 * Constructor for Product.

	 */

	public Product() {

		super();

	}



	/**

	 * @hibernate.property

	 *  length="512"

	 * @return String

	 */

	public String getDescription() {

		return description;

	}



	/**

	 * Sets the name.

	 * @param name The name to set

	 */

	public void setDescription(String name) {

		this.description = name;

	}



	/**

	 * @hibernate.property

	 *  length="16"

	 *  unique="true"

	 *  update="false"

	 * @return String

	 */

	public String getCode() {

		return code;

	}



	/**

	 * Sets the code.

	 * @param code The code to set

	 */

	public void setCode(String code) {

		this.code = code;

	}



	/**

	 * @hibernate.property

	 *  length="4096"

	 * Returns the image.

	 * @return byte[]

	 */

	public byte[] getImage() {

		return image;

	}



	/**

	 * @hibernate.property

	 * Returns the price.

	 * @return BigDecimal

	 */

	public BigDecimal getPrice() {

		return price;

	}



	/**

	 * Sets the image.

	 * @param image The image to set

	 */

	public void setImage(byte[] image) {

		this.image = image;

	}



	/**

	 * Sets the price.

	 * @param price The price to set

	 */

	public void setPrice(BigDecimal price) {

		this.price = price;

	}



	public String getUpdateComment() {

		return updateComment;

	}



	public void setUpdateComment(String string) {

		updateComment = string;

	}



}

⌨️ 快捷键说明

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