package com.soulab.mybbs.beans;
import java.util.Date;
/**
* PostViewViewthreadId generated by MyEclipse Persistence Tools
*/
public class PostViewViewthreadId implements java.io.Serializable {
// Fields
private Integer pid;
private Integer ptid;
private Integer pfid;
private Integer puid;
private Integer pisThread;
private String ptopic;
private String pcontents;
private Date ptime;
private Integer uid;
private String uname;
private String upassword;
private Integer ugid;
private Integer uscore;
private Integer uarticals;
private String gname;
private String ptimeview;
// Constructors
public String getPtimeview() {
return ptimeview;
}
public void setPtimeview(String ptimeview) {
this.ptimeview = ptimeview;
}
/** default constructor */
public PostViewViewthreadId() {
}
/** minimal constructor */
public PostViewViewthreadId(Integer pid, Integer ptid, Integer pfid,
Integer puid, Integer pisThread, String pcontents, Integer uid,
String uname, String upassword, Integer ugid, Integer uscore,
Integer uarticals, String gname) {
this.pid = pid;
this.ptid = ptid;
this.pfid = pfid;
this.puid = puid;
this.pisThread = pisThread;
this.pcontents = pcontents;
this.uid = uid;
this.uname = uname;
this.upassword = upassword;
this.ugid = ugid;
this.uscore = uscore;
this.uarticals = uarticals;
this.gname = gname;
}
/** full constructor */
public PostViewViewthreadId(Integer pid, Integer ptid, Integer pfid,
Integer puid, Integer pisThread, String ptopic, String pcontents,
Date ptime, Integer uid, String uname, String upassword,
Integer ugid, Integer uscore, Integer uarticals, String gname) {
this.pid = pid;
this.ptid = ptid;
this.pfid = pfid;
this.puid = puid;
this.pisThread = pisThread;
this.ptopic = ptopic;
this.pcontents = pcontents;
this.ptime = ptime;
this.uid = uid;
this.uname = uname;
this.upassword = upassword;
this.ugid = ugid;
this.uscore = uscore;
this.uarticals = uarticals;
this.gname = gname;
}
// Property accessors
public Integer getPid() {
return this.pid;
}
public void setPid(Integer pid) {
this.pid = pid;
}
public Integer getPtid() {
return this.ptid;
}
public void setPtid(Integer ptid) {
this.ptid = ptid;
}
public Integer getPfid() {
return this.pfid;
}
public void setPfid(Integer pfid) {
this.pfid = pfid;
}
public Integer getPuid() {
return this.puid;
}
public void setPuid(Integer puid) {
this.puid = puid;
}
public Integer getPisThread() {
return this.pisThread;
}
public void setPisThread(Integer pisThread) {
this.pisThread = pisThread;
}
public String getPtopic() {
return this.ptopic;
}
public void setPtopic(String ptopic) {
this.ptopic = ptopic;
}
public String getPcontents() {
return this.pcontents;
}
public void setPcontents(String pcontents) {
this.pcontents = pcontents;
}
public Date getPtime() {
return this.ptime;
}
public void setPtime(Date ptime) {
this.ptime = ptime;
}
public Integer getUid() {
return this.uid;
}
public void setUid(Integer uid) {
this.uid = uid;
}
public String getUname() {
return this.uname;
}
public void setUname(String uname) {
this.uname = uname;
}
public String getUpassword() {
return this.upassword;
}
public void setUpassword(String upassword) {
this.upassword = upassword;
}
public Integer getUgid() {
return this.ugid;
}
public void setUgid(Integer ugid) {
this.ugid = ugid;
}
public Integer getUscore() {
return this.uscore;
}
public void setUscore(Integer uscore) {
this.uscore = uscore;
}
public Integer getUarticals() {
return this.uarticals;
}
public void setUarticals(Integer uarticals) {
this.uarticals = uarticals;
}
public String getGname() {
return this.gname;
}
public void setGname(String gname) {
this.gname = gname;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof PostViewViewthreadId))
return false;
PostViewViewthreadId castOther = (PostViewViewthreadId) other;
return ((this.getPid() == castOther.getPid()) || (this.getPid() != null
&& castOther.getPid() != null && this.getPid().equals(
castOther.getPid())))
&& ((this.getPtid() == castOther.getPtid()) || (this.getPtid() != null
&& castOther.getPtid() != null && this.getPtid()
.equals(castOther.getPtid())))
&& ((this.getPfid() == castOther.getPfid()) || (this.getPfid() != null
&& castOther.getPfid() != null && this.getPfid()
.equals(castOther.getPfid())))
&& ((this.getPuid() == castOther.getPuid()) || (this.getPuid() != null
&& castOther.getPuid() != null && this.getPuid()
.equals(castOther.getPuid())))
&& ((this.getPisThread() == castOther.getPisThread()) || (this
.getPisThread() != null
&& castOther.getPisThread() != null && this
.getPisThread().equals(castOther.getPisThread())))
&& ((this.getPtopic() == castOther.getPtopic()) || (this
.getPtopic() != null
&& castOther.getPtopic() != null && this.getPtopic()
.equals(castOther.getPtopic())))
&& ((this.getPcontents() == castOther.getPcontents()) || (this
.getPcontents() != null
&& castOther.getPcontents() != null && this
.getPcontents().equals(castOther.getPcontents())))
&& ((this.getPtime() == castOther.getPtime()) || (this
.getPtime() != null
&& castOther.getPtime() != null && this.getPtime()
.equals(castOther.getPtime())))
&& ((this.getUid() == castOther.getUid()) || (this.getUid() != null
&& castOther.getUid() != null && this.getUid().equals(
castOther.getUid())))
&& ((this.getUname() == castOther.getUname()) || (this
.getUname() != null
&& castOther.getUname() != null && this.getUname()
.equals(castOther.getUname())))
&& ((this.getUpassword() == castOther.getUpassword()) || (this
.getUpassword() != null
&& castOther.getUpassword() != null && this
.getUpassword().equals(castOther.getUpassword())))
&& ((this.getUgid() == castOther.getUgid()) || (this.getUgid() != null
&& castOther.getUgid() != null && this.getUgid()
.equals(castOther.getUgid())))
&& ((this.getUscore() == castOther.getUscore()) || (this
.getUscore() != null
&& castOther.getUscore() != null && this.getUscore()
.equals(castOther.getUscore())))
&& ((this.getUarticals() == castOther.getUarticals()) || (this
.getUarticals() != null
&& castOther.getUarticals() != null && this
.getUarticals().equals(castOther.getUarticals())))
&& ((this.getGname() == castOther.getGname()) || (this
.getGname() != null
&& castOther.getGname() != null && this.getGname()
.equals(castOther.getGname())));
}
public int hashCode() {
int result = 17;
result = 37 * result
+ (getPid() == null ? 0 : this.getPid().hashCode());
result = 37 * result
+ (getPtid() == null ? 0 : this.getPtid().hashCode());
result = 37 * result
+ (getPfid() == null ? 0 : this.getPfid().hashCode());
result = 37 * result
+ (getPuid() == null ? 0 : this.getPuid().hashCode());
result = 37 * result
+ (getPisThread() == null ? 0 : this.getPisThread().hashCode());
result = 37 * result
+ (getPtopic() == null ? 0 : this.getPtopic().hashCode());
result = 37 * result
+ (getPcontents() == null ? 0 : this.getPcontents().hashCode());
result = 37 * result
+ (getPtime() == null ? 0 : this.getPtime().hashCode());
result = 37 * result
+ (getUid() == null ? 0 : this.getUid().hashCode());
resu
- 1
- 2
前往页