owners.java
来自「随书光盘:精通Sping 2.0 的随书源代码」· Java 代码 · 共 101 行
JAVA
101 行
package org.springframework.samples;
// Generated 2006-10-27 18:12:00 by Hibernate Tools 3.2.0.beta8
import java.util.HashSet;
import java.util.Set;
/**
* Owners generated by hbm2java
*/
public class Owners implements java.io.Serializable {
// Fields
private int id;
private String firstName;
private String lastName;
private String address;
private String city;
private String telephone;
private Set petses = new HashSet(0);
// Constructors
/** default constructor */
public Owners() {
}
/** minimal constructor */
public Owners(int id) {
this.id = id;
}
/** full constructor */
public Owners(int id, String firstName, String lastName, String address, String city, String telephone, Set petses) {
this.id = id;
this.firstName = firstName;
this.lastName = lastName;
this.address = address;
this.city = city;
this.telephone = telephone;
this.petses = petses;
}
// Property accessors
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
public String getFirstName() {
return this.firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return this.lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getAddress() {
return this.address;
}
public void setAddress(String address) {
this.address = address;
}
public String getCity() {
return this.city;
}
public void setCity(String city) {
this.city = city;
}
public String getTelephone() {
return this.telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
public Set getPetses() {
return this.petses;
}
public void setPetses(Set petses) {
this.petses = petses;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?