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

📄 customer.java

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 JAVA
字号:
//$Id: Customer.java 4806 2004-11-25 14:37:00Z steveebersole $package org.hibernate.test.cid;import java.util.ArrayList;import java.util.List;import java.util.GregorianCalendar;import java.math.BigDecimal;/** * @author Gavin King */public class Customer {	private String customerId;	private String name;	private String address;	private List orders = new ArrayList();	/**	 * @return Returns the address.	 */	public String getAddress() {		return address;	}	/**	 * @param address The address to set.	 */	public void setAddress(String address) {		this.address = address;	}	/**	 * @return Returns the customerId.	 */	public String getCustomerId() {		return customerId;	}	/**	 * @param customerId The customerId to set.	 */	public void setCustomerId(String customerId) {		this.customerId = customerId;	}	/**	 * @return Returns the name.	 */	public String getName() {		return name;	}	/**	 * @param name The name to set.	 */	public void setName(String name) {		this.name = name;	}	/**	 * @return Returns the orders.	 */	public List getOrders() {		return orders;	}	/**	 * @param orders The orders to set.	 */	public void setOrders(List orders) {		this.orders = orders;	}	public Order generateNewOrder(BigDecimal total) {		Order order = new Order(this);		order.setOrderDate( new GregorianCalendar() );		order.setTotal( total );		return order;	}}

⌨️ 快捷键说明

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