?? abstractrolepower.java
字號:
package com.xaccp.biz.po;
// default package
/**
* AbstractRolePower generated by MyEclipse - Hibernate Tools
*/
public abstract class AbstractRolePower implements java.io.Serializable {
// Fields
private Integer id;
private Power tblPower;
private Role tblRole;
private Integer state;
// Constructors
/** default constructor */
public AbstractRolePower() {
}
/** full constructor */
public AbstractRolePower(Power tblPower, Role tblRole, Integer state) {
this.tblPower = tblPower;
this.tblRole = tblRole;
this.state = state;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Power getTblPower() {
return this.tblPower;
}
public void setTblPower(Power tblPower) {
this.tblPower = tblPower;
}
public Role getTblRole() {
return this.tblRole;
}
public void setTblRole(Role tblRole) {
this.tblRole = tblRole;
}
public Integer getState() {
return this.state;
}
public void setState(Integer state) {
this.state = state;
}
@Override
public int hashCode() {
final int PRIME = 31;
int result = 1;
result = PRIME * result + ((id == null) ? 0 : id.hashCode());
result = PRIME * result + ((tblPower == null) ? 0 : tblPower.hashCode());
result = PRIME * result + ((tblRole == null) ? 0 : tblRole.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 AbstractRolePower other = (AbstractRolePower) obj;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
if (tblPower == null) {
if (other.tblPower != null)
return false;
} else if (!tblPower.equals(other.tblPower))
return false;
if (tblRole == null) {
if (other.tblRole != null)
return false;
} else if (!tblRole.equals(other.tblRole))
return false;
return true;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -