car.java

来自「hibernate-3.0.5 中文文档」· Java 代码 · 共 59 行

JAVA
59
字号
package org.hibernate.test.dom4j;

import java.util.HashSet;
import java.util.Set;

/**
 * @author Paco Hern醤dez
 */
public class Car implements java.io.Serializable {

	private long id;
	private String model;
	private CarType carType;
	private Set carParts = new HashSet();
	
	/**
	 * @return Returns the carType.
	 */
	public CarType getCarType() {
		return carType;
	}
	/**
	 * @param carType The carType to set.
	 */
	public void setCarType(CarType carType) {
		this.carType = carType;
	}
	/**
	 * @return Returns the id.
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id The id to set.
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @return Returns the model.
	 */
	public String getModel() {
		return model;
	}
	/**
	 * @param model The model to set.
	 */
	public void setModel(String model) {
		this.model = model;
	}
	public Set getCarParts() {
		return carParts;
	}
	public void setCarParts(Set carParts) {
		this.carParts = carParts;
	}
}

⌨️ 快捷键说明

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