📄 messe.java
字号:
package com.shunshi.ssh.entity;
import java.io.Serializable;
import java.util.Date;
public class Messe implements Serializable{
private Long id;//��ݿ��ʾid
private Long userId;//�û�id
private Date publishDate;//��������
private Integer state;//״̬
private String name; //չ�����
private Date starttime;//չ��ʱ��,��date����̨ʹ��
private String locazone;//չ��ص�
private String sponsor;//��쵥λ
private String organizer;//�а쵥λ
private String focus;//չ���u�
private String intro;//չ�����
private String contact;//jϵ��
private String telephone;//�绰
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Date getPublishDate() {
return publishDate;
}
public void setPublishDate(Date publishDate) {
this.publishDate = publishDate;
}
public Integer getState() {
return state;
}
public void setState(Integer state) {
this.state = state;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getStarttime() {
return starttime;
}
public void setStarttime(Date starttime) {
this.starttime = starttime;
}
public String getLocazone() {
return locazone;
}
public void setLocazone(String locazone) {
this.locazone = locazone;
}
public String getSponsor() {
return sponsor;
}
public void setSponsor(String sponsor) {
this.sponsor = sponsor;
}
public String getOrganizer() {
return organizer;
}
public void setOrganizer(String organizer) {
this.organizer = organizer;
}
public String getFocus() {
return focus;
}
public void setFocus(String focus) {
this.focus = focus;
}
public String getIntro() {
return intro;
}
public void setIntro(String intro) {
this.intro = intro;
}
public String getContact() {
return contact;
}
public void setContact(String contact) {
this.contact = contact;
}
public String getTelephone() {
return telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((contact == null) ? 0 : contact.hashCode());
result = prime * result + ((focus == null) ? 0 : focus.hashCode());
result = prime * result + ((id == null) ? 0 : id.hashCode());
result = prime * result + ((intro == null) ? 0 : intro.hashCode());
result = prime * result
+ ((locazone == null) ? 0 : locazone.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result
+ ((organizer == null) ? 0 : organizer.hashCode());
result = prime * result
+ ((publishDate == null) ? 0 : publishDate.hashCode());
result = prime * result + ((sponsor == null) ? 0 : sponsor.hashCode());
result = prime * result
+ ((starttime == null) ? 0 : starttime.hashCode());
result = prime * result + ((state == null) ? 0 : state.hashCode());
result = prime * result
+ ((telephone == null) ? 0 : telephone.hashCode());
result = prime * result + ((userId == null) ? 0 : userId.hashCode());
return result;
}
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Messe other = (Messe) obj;
if (contact == null) {
if (other.contact != null)
return false;
} else if (!contact.equals(other.contact))
return false;
if (focus == null) {
if (other.focus != null)
return false;
} else if (!focus.equals(other.focus))
return false;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
if (intro == null) {
if (other.intro != null)
return false;
} else if (!intro.equals(other.intro))
return false;
if (locazone == null) {
if (other.locazone != null)
return false;
} else if (!locazone.equals(other.locazone))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (organizer == null) {
if (other.organizer != null)
return false;
} else if (!organizer.equals(other.organizer))
return false;
if (publishDate == null) {
if (other.publishDate != null)
return false;
} else if (!publishDate.equals(other.publishDate))
return false;
if (sponsor == null) {
if (other.sponsor != null)
return false;
} else if (!sponsor.equals(other.sponsor))
return false;
if (starttime == null) {
if (other.starttime != null)
return false;
} else if (!starttime.equals(other.starttime))
return false;
if (state == null) {
if (other.state != null)
return false;
} else if (!state.equals(other.state))
return false;
if (telephone == null) {
if (other.telephone != null)
return false;
} else if (!telephone.equals(other.telephone))
return false;
if (userId == null) {
if (other.userId != null)
return false;
} else if (!userId.equals(other.userId))
return false;
return true;
}
public String toString(){
StringBuffer sb=new StringBuffer();
sb.append("id:"+id+"\n");
sb.append("name:"+name+"\n");
sb.append("starttime:"+starttime+"\n");
sb.append("locazone:"+locazone+"\n");
sb.append("sponsor:"+sponsor+"\n");
sb.append("organizer:"+organizer+"\n");
sb.append("focus:"+focus+"\n");
sb.append("intro:"+intro+"\n");
sb.append("contact:"+contact+"\n");
sb.append("telephone:"+telephone+"\n");
sb.append("state:"+state+"\n");
sb.append("publishDate:"+publishDate+"\n");
sb.append("userId:"+userId+"\n");
return sb.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -