Rev 29766 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;import java.time.LocalDateTime;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.EnumType;import javax.persistence.Enumerated;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.Table;import com.spice.profitmandi.dao.enumuration.fofo.ApplicableServiceType;/*** This class basically contains role details** @author Govind**/@Entity@Table(name="fofo.partner_service",schema="fofo")public class PartnerService {@Id@Column(name="id", unique=true, updatable=false)@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name="fofo_id")private int fofoId;@Column(name="partner_service_comment_id")private int partnerServiceCommentId ;@Column(name="service_id")private int serviceId;@Column(name="applicable_type")@Enumerated(EnumType.STRING)private ApplicableServiceType applicableType;@Column(name="code")private String code;@Column(name="create_timestamp")private LocalDateTime createTimestamp;@Column(name="pending_create_timestamp")private LocalDateTime pendingCreateTimestamp;@Column(name="na_Comment")private String na_Comment;@Column(name="gen_comment")private String genComment;@Column(name="pni_service_comment")private String partnerNotInterestedServiceComment;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public String getPartnerNotInterestedServiceComment() {return partnerNotInterestedServiceComment;}public void setPartnerNotInterestedServiceComment(String partnerNotInterestedServiceComment) {this.partnerNotInterestedServiceComment = partnerNotInterestedServiceComment;}public LocalDateTime getPendingCreateTimestamp() {return pendingCreateTimestamp;}public void setPendingCreateTimestamp(LocalDateTime pendingCreateTimestamp) {this.pendingCreateTimestamp = pendingCreateTimestamp;}public LocalDateTime getCreateTimestamp() {return createTimestamp;}public void setCreateTimestamp(LocalDateTime createTimestamp) {this.createTimestamp = createTimestamp;}public int getServiceId() {return serviceId;}public void setServiceId(int serviceId) {this.serviceId = serviceId;}public ApplicableServiceType getApplicableType() {return applicableType;}public void setApplicableType(ApplicableServiceType applicableType) {this.applicableType = applicableType;}public String getCode() {return code;}public void setCode(String code) {this.code = code;}public String getNa_Comment() {return na_Comment;}public void setNa_Comment(String na_Comment) {this.na_Comment = na_Comment;}public String getGenComment() {return genComment;}public void setGenComment(String genComment) {this.genComment = genComment;}public int getPartnerServiceCommentId() {return partnerServiceCommentId;}public void setPartnerServiceCommentId(int partnerServiceCommentId) {this.partnerServiceCommentId = partnerServiceCommentId;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + ((applicableType == null) ? 0 : applicableType.hashCode());result = prime * result + ((code == null) ? 0 : code.hashCode());result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());result = prime * result + fofoId;result = prime * result + ((genComment == null) ? 0 : genComment.hashCode());result = prime * result + id;result = prime * result + ((na_Comment == null) ? 0 : na_Comment.hashCode());result = prime * result+ ((partnerNotInterestedServiceComment == null) ? 0 : partnerNotInterestedServiceComment.hashCode());result = prime * result + ((pendingCreateTimestamp == null) ? 0 : pendingCreateTimestamp.hashCode());result = prime * result + serviceId;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;PartnerService other = (PartnerService) obj;if (applicableType != other.applicableType)return false;if (code == null) {if (other.code != null)return false;} else if (!code.equals(other.code))return false;if (createTimestamp == null) {if (other.createTimestamp != null)return false;} else if (!createTimestamp.equals(other.createTimestamp))return false;if (fofoId != other.fofoId)return false;if (genComment == null) {if (other.genComment != null)return false;} else if (!genComment.equals(other.genComment))return false;if (id != other.id)return false;if (na_Comment == null) {if (other.na_Comment != null)return false;} else if (!na_Comment.equals(other.na_Comment))return false;if (partnerNotInterestedServiceComment == null) {if (other.partnerNotInterestedServiceComment != null)return false;} else if (!partnerNotInterestedServiceComment.equals(other.partnerNotInterestedServiceComment))return false;if (pendingCreateTimestamp == null) {if (other.pendingCreateTimestamp != null)return false;} else if (!pendingCreateTimestamp.equals(other.pendingCreateTimestamp))return false;if (serviceId != other.serviceId)return false;return true;}@Overridepublic String toString() {return "PartnerService [id=" + id + ", fofoId=" + fofoId + ", serviceId=" + serviceId + ", applicableType="+ applicableType + ", code=" + code + ", createTimestamp=" + createTimestamp+ ", pendingCreateTimestamp=" + pendingCreateTimestamp + ", na_Comment=" + na_Comment+ ", partnerNotInterestedServiceComment=" + partnerNotInterestedServiceComment + "]";}}