bulletinurlid.java
来自「使用spring ,hibernate 框架的稽查管理系统」· Java 代码 · 共 70 行
JAVA
70 行
package com.je.ims.hibernate;
/**
* BulletinUrlId generated by MyEclipse - Hibernate Tools
*/
public class BulletinUrlId implements java.io.Serializable {
// Fields
private Long bullentinId;
private String url;
// Constructors
/** default constructor */
public BulletinUrlId() {
}
// Property accessors
public Long getBullentinId() {
return this.bullentinId;
}
public void setBullentinId(Long bullentinId) {
this.bullentinId = bullentinId;
}
public String getUrl() {
return this.url;
}
public void setUrl(String url) {
this.url = url;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof BulletinUrlId) ) return false;
BulletinUrlId castOther = ( BulletinUrlId ) other;
return ( (this.getBullentinId()==castOther.getBullentinId()) || ( this.getBullentinId()!=null && castOther.getBullentinId()!=null && this.getBullentinId().equals(castOther.getBullentinId()) ) )
&& ( (this.getUrl()==castOther.getUrl()) || ( this.getUrl()!=null && castOther.getUrl()!=null && this.getUrl().equals(castOther.getUrl()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getBullentinId() == null ? 0 : this.getBullentinId().hashCode() );
result = 37 * result + ( getUrl() == null ? 0 : this.getUrl().hashCode() );
return result;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?