📄 abstractuserrole.java
字号:
package com.xaccp.biz.po;
// default package
/**
* AbstractUserRole generated by MyEclipse - Hibernate Tools
*/
public abstract class AbstractUserRole implements java.io.Serializable {
// Fields
private Integer id;
private Role tblRole;
private User tblUser;
// Constructors
/** default constructor */
public AbstractUserRole() {
}
/** full constructor */
public AbstractUserRole(Role tblRole, User tblUser) {
this.tblRole = tblRole;
this.tblUser = tblUser;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Role getTblRole() {
return this.tblRole;
}
public void setTblRole(Role tblRole) {
this.tblRole = tblRole;
}
public User getTblUser() {
return this.tblUser;
}
public void setTblUser(User tblUser) {
this.tblUser = tblUser;
}
@Override
public int hashCode() {
final int PRIME = 31;
int result = 1;
result = PRIME * result + ((id == null) ? 0 : id.hashCode());
result = PRIME * result + ((tblRole == null) ? 0 : tblRole.hashCode());
result = PRIME * result + ((tblUser == null) ? 0 : tblUser.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 AbstractUserRole other = (AbstractUserRole) obj;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
if (tblRole == null) {
if (other.tblRole != null)
return false;
} else if (!tblRole.equals(other.tblRole))
return false;
if (tblUser == null) {
if (other.tblUser != null)
return false;
} else if (!tblUser.equals(other.tblUser))
return false;
return true;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -