📄 company.java
字号:
/**FileName:Company.java,v 1.0 created in 2008-11-5 上午09:34:52*/
package cn.jx.ecjtu.oa.ps.pojo;
/**
*公司信息类
* @author hupeng
* @version $Revision: 1.7 $
* @since 1.0
*/
public class Company {
private int com_id;
private String name;
private String email;
private String address;
private String phone;
private String fax;
private String post;
private String web;
private String info;
private String bank;
public Company() {
// TODO Auto-generated constructor stub
}
@Override
public int hashCode() {
final int PRIME = 31;
int result = 1;
result = PRIME * result + ((address == null) ? 0 : address.hashCode());
result = PRIME * result + ((bank == null) ? 0 : bank.hashCode());
result = PRIME * result + com_id;
result = PRIME * result + ((email == null) ? 0 : email.hashCode());
result = PRIME * result + ((fax == null) ? 0 : fax.hashCode());
result = PRIME * result + ((info == null) ? 0 : info.hashCode());
result = PRIME * result + ((name == null) ? 0 : name.hashCode());
result = PRIME * result + ((phone == null) ? 0 : phone.hashCode());
result = PRIME * result + ((post == null) ? 0 : post.hashCode());
result = PRIME * result + ((web == null) ? 0 : web.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final Company other = (Company) obj;
if (address == null) {
if (other.address != null)
return false;
} else if (!address.equals(other.address))
return false;
if (bank == null) {
if (other.bank != null)
return false;
} else if (!bank.equals(other.bank))
return false;
if (com_id != other.com_id)
return false;
if (email == null) {
if (other.email != null)
return false;
} else if (!email.equals(other.email))
return false;
if (fax == null) {
if (other.fax != null)
return false;
} else if (!fax.equals(other.fax))
return false;
if (info == null) {
if (other.info != null)
return false;
} else if (!info.equals(other.info))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (phone == null) {
if (other.phone != null)
return false;
} else if (!phone.equals(other.phone))
return false;
if (post == null) {
if (other.post != null)
return false;
} else if (!post.equals(other.post))
return false;
if (web == null) {
if (other.web != null)
return false;
} else if (!web.equals(other.web))
return false;
return true;
}
public Company(int com_id, String name, String email, String address, String phone, String fax, String post, String web, String info, String bank) {
super();
this.com_id = com_id;
this.name = name;
this.email = email;
this.address = address;
this.phone = phone;
this.fax = fax;
this.post = post;
this.web = web;
this.info = info;
this.bank = bank;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getBank() {
return bank;
}
public void setBank(String bank) {
this.bank = bank;
}
public int getCom_id() {
return com_id;
}
public void setCom_id(int com_id) {
this.com_id = com_id;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getFax() {
return fax;
}
public void setFax(String fax) {
this.fax = fax;
}
public String getInfo() {
return info;
}
public void setInfo(String info) {
this.info = info;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getPost() {
return post;
}
public void setPost(String post) {
this.post = post;
}
public String getWeb() {
return web;
}
public void setWeb(String web) {
this.web = web;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -