Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;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;import com.spice.profitmandi.dao.enumuration.fofo.PartnerStatusType;/*** This class basically contains role details** @author Govind**/@Entity@Table(name = "fofo.partner_service_brand", schema = "fofo")public class PartnerBrandService {@Id@Column(name = "id", unique = true, updatable = false)@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name = "fofo_id")private int fofoId;@Column(name = "brand_service_id")private int brandServiceId;@Column(name = "active")private boolean active;@Column(name = "applicable_type")@Enumerated(EnumType.STRING)private ApplicableServiceType applicableType;@Column(name = "partner_status_type")@Enumerated(EnumType.STRING)private PartnerStatusType partnerStatusType;;@Column(name = "na_Comment")private String na_Comment;@Column(name = "partner_status_comment")private String partnerStatusComment;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 int getBrandServiceId() {return brandServiceId;}public void setBrandServiceId(int brandServiceId) {this.brandServiceId = brandServiceId;}public boolean isActive() {return active;}public void setActive(boolean active) {this.active = active;}public ApplicableServiceType getApplicableType() {return applicableType;}public void setApplicableType(ApplicableServiceType applicableType) {this.applicableType = applicableType;}public PartnerStatusType getPartnerStatusType() {return partnerStatusType;}public void setPartnerStatusType(PartnerStatusType partnerStatusType) {this.partnerStatusType = partnerStatusType;}public String getNa_Comment() {return na_Comment;}public void setNa_Comment(String na_Comment) {this.na_Comment = na_Comment;}public String getPartnerStatusComment() {return partnerStatusComment;}public void setPartnerStatusComment(String partnerStatusComment) {this.partnerStatusComment = partnerStatusComment;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + (active ? 1231 : 1237);result = prime * result + ((applicableType == null) ? 0 : applicableType.hashCode());result = prime * result + brandServiceId;result = prime * result + fofoId;result = prime * result + id;result = prime * result + ((na_Comment == null) ? 0 : na_Comment.hashCode());result = prime * result + ((partnerStatusComment == null) ? 0 : partnerStatusComment.hashCode());result = prime * result + ((partnerStatusType == null) ? 0 : partnerStatusType.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;PartnerBrandService other = (PartnerBrandService) obj;if (active != other.active)return false;if (applicableType != other.applicableType)return false;if (brandServiceId != other.brandServiceId)return false;if (fofoId != other.fofoId)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 (partnerStatusComment == null) {if (other.partnerStatusComment != null)return false;} else if (!partnerStatusComment.equals(other.partnerStatusComment))return false;if (partnerStatusType != other.partnerStatusType)return false;return true;}@Overridepublic String toString() {return "PartnerBrandService [id=" + id + ", fofoId=" + fofoId + ", brandServiceId=" + brandServiceId+ ", active=" + active + ", applicableType=" + applicableType + ", partnerStatusType="+ partnerStatusType + ", na_Comment=" + na_Comment + ", partnerStatusComment=" + partnerStatusComment+ "]";}}