address.java

来自「hibernate的经典练习」· Java 代码 · 共 58 行

JAVA
58
字号
package com.ghy.test8;

import java.io.Serializable;

public class Address implements Serializable {

	private String home ;
	private String code ;
	private Student student ;
	public Address(String home, String code, Student student) {
		super();
		this.home = home;
		this.code = code;
		this.student = student;
	}
	public Address() {
		super();
		// TODO Auto-generated constructor stub
	}
	/**
	 * @return the home
	 */
	public String getHome() {
		return home;
	}
	/**
	 * @param home the home to set
	 */
	public void setHome(String home) {
		this.home = home;
	}
	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}
	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the student
	 */
	public Student getStudent() {
		return student;
	}
	/**
	 * @param student the student to set
	 */
	public void setStudent(Student student) {
		this.student = student;
	}
	
}

⌨️ 快捷键说明

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