📄 abstractauditorrole1id.java
字号:
package gdpe.hibernate.auro;
import gdpe.hibernate.auditor1.Auditor1;
import gdpe.hibernate.role.Role1;
/**
* AbstractAuditorRole1Id generated by MyEclipse - Hibernate Tools
*/
public abstract class AbstractAuditorRole1Id implements java.io.Serializable {
// Fields
private Auditor1 auditor1;
private Role1 role1;
// Constructors
/** default constructor */
public AbstractAuditorRole1Id() {
}
/** full constructor */
public AbstractAuditorRole1Id(Auditor1 auditor1, Role1 role1) {
this.auditor1 = auditor1;
this.role1 = role1;
}
// Property accessors
public Auditor1 getAuditor1() {
return this.auditor1;
}
public void setAuditor1(Auditor1 auditor1) {
this.auditor1 = auditor1;
}
public Role1 getRole1() {
return this.role1;
}
public void setRole1(Role1 role1) {
this.role1 = role1;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof AbstractAuditorRole1Id) ) return false;
AbstractAuditorRole1Id castOther = ( AbstractAuditorRole1Id ) other;
return ( (this.getAuditor1()==castOther.getAuditor1()) || ( this.getAuditor1()!=null && castOther.getAuditor1()!=null && this.getAuditor1().equals(castOther.getAuditor1()) ) ) && ( (this.getRole1()==castOther.getRole1()) || ( this.getRole1()!=null && castOther.getRole1()!=null && this.getRole1().equals(castOther.getRole1()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getAuditor1() == null ? 0 : this.getAuditor1().hashCode() );
result = 37 * result + ( getRole1() == null ? 0 : this.getRole1().hashCode() );
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -