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

📄 orderlineitem.java

📁 struts+spring+hibernate的例子
💻 JAVA
字号:
/*
 * Created on Mar 5, 2004
 *
 * (c) 2004, Mark Eagle, meagle@meagle.com
 * relased under terms of the GNU public license 
 * http://www.gnu.org/licenses/licenses.html#TOCGPL
 */
package com.meagle.bo;

/**
 * Simple order line item representation
 * 
 * @hibernate.class table="OrderLineItem"
 * 
 * @author meagle   
 */
public class OrderLineItem {
	
	private Integer id;
	
	private double lineItemPrice;
	
	private String description;
	
	private Order order;

	/**
	 * Default constructor
	 */
	public OrderLineItem() {
		super();
	}

	/**
	 * Note: unsaved-value An identifier property value that indicates that an instance 	 * is newly instantiated (unsaved), distinguishing it from transient instances that 	 * were saved or loaded in a previous session.  If not specified you will get an exception like this:	 * another object associated with the session has the same identifier	 *	 * @hibernate.id generator-class="native" type="int" column="OrderLineItem_ID" unsaved-value="0" 	 * @return int
	 */
	public Integer getId() {
		return id;
	}
	
	/**
	 * @hibernate.many-to-one column="Order_ID" class="com.meagle.bo.Order"	 *	 * @return Order	 *
	 */
	public Order getOrder() {
		return order;
	}

	/**
	 * @hibernate.property name="description" column="Description" type="string" not-null="false" unique="false"	 * 	 * @return String
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @hibernate.property name="lineItemPrice" column="LineItemPrice" type="double" not-null="false" unique="false"	 * 	 * @return double
	 */
	public double getLineItemPrice() {
		return lineItemPrice;
	}

	/**
	 * @param string
	 */
	public void setDescription(String string) {
		description = string;
	}

	/**
	 * @param i
	 */
	public void setId(Integer i) {
		id = i;
	}

	/**
	 * @param d
	 */
	public void setLineItemPrice(double d) {
		lineItemPrice = d;
	}

	/**
	 * @param order
	 */
	public void setOrder(Order order) {
		this.order = order;
	}

}

⌨️ 快捷键说明

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