📄 person.java
字号:
package org.springframework.samples.petclinic;
/**
* Simple JavaBean domain object representing an person.
*
* @author Ken Krebs
*/
public class Person extends Entity {
/** Holds value of property firstName. */
private String firstName;
/** Holds value of property lastName. */
private String lastName;
/** Holds value of property address. */
private String address;
/** Holds value of property city. */
private String city;
/** Holds value of property telephone. */
private String telephone;
/** Getter for property firstName.
* @return Value of property firstName.
*/
public String getFirstName() {
return this.firstName;
}
/** Setter for property firstName.
* @param firstName New value of property firstName.
*/
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/** Getter for property lastName.
* @return Value of property lastName.
*/
public String getLastName() {
return this.lastName;
}
/** Setter for property lastName.
* @param lastName New value of property lastName.
*/
public void setLastName(String lastName) {
this.lastName = lastName;
}
/** Getter for property address.
* @return Value of property address.
*/
public String getAddress() {
return this.address;
}
/** Setter for property address.
* @param address New value of property address.
*/
public void setAddress(String address) {
this.address = address;
}
/** Getter for property city.
* @return Value of property city.
*/
public String getCity() {
return this.city;
}
/** Setter for property city.
* @param city New value of property city.
*/
public void setCity(String city) {
this.city = city;
}
/** Getter for property telephone.
* @return Value of property telephone.
*/
public String getTelephone() {
return this.telephone;
}
/** Setter for property telephone.
* @param telephone New value of property telephone.
*/
public void setTelephone(String telephone) {
this.telephone = telephone;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -