jay.java

来自「用JSP 开发的人力资源系统。可实现用户操作」· Java 代码 · 共 46 行

JAVA
46
字号
//$Id: Jay.java,v 1.1.2.1 2004/01/19 18:00:32 oneovthafew Exp $
package org.hibernate.test;

/**
 * @author Gavin King
 */
public class Jay {
	private long id;
	private Eye eye;
	/**
	 * @return Returns the eye.
	 */
	public Eye getEye() {
		return eye;
	}

	/**
	 * @param eye The eye to set.
	 */
	public void setEye(Eye eye) {
		this.eye = eye;
	}

	/**
	 * @return Returns the id.
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id The id to set.
	 */
	public void setId(long id) {
		this.id = id;
	}
	
	public Jay() {}
	
	public Jay(Eye eye) {
		eye.getJays().add(eye);
		this.eye = eye;
	}

}

⌨️ 快捷键说明

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